如何将额外数据添加到未映射到标准条目节点(标题、链接、id、更新、摘要)的 atom 提要中?是否可以在这里添加我自己的自定义 xml 并且仍然符合规范?
NabilS
问问题
482 次
1 回答
8
http://www.atomenabled.org/developers/syndication/atom-format-spec.php#extending_atom记录了几种不同的方法。
您可以在atom:entry的末尾添加扩展元素。
<atom:entry>
<!--- all the normal stuff --->
<mything:Thing xmlns:mything="http://example.com/example.xsd">
<!--- whatever --->
</mything:Thing>
</atom:entry>
于 2008-11-03T21:17:28.133 回答