在原子提要中公开数据

Nab*_*ilS 8 feed atom-feed

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

Dou*_*ean 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>
Run Code Online (Sandbox Code Playgroud)