如何将额外数据添加到未映射到标准条目节点(标题,链接,ID,更新,摘要)的原子Feed中?是否可以在此处添加我自己的自定义xml并仍然符合规范?

有帮助吗?

解决方案

http:// www记录了几种不同的方法。 .atomenabled.org /开发者/联合/原子的格式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>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top