It exploits special knowledge about the flat structure of the atom data, the existence of newline characters between elements, and other characteristics.
它利用的是有关原子数据平面结构、元素之间换行字符的存在以及其他特性的特殊知识。
As you noticed in the feed document, each entry has a URL to itself through the self link, illustrating another useful pattern in Atom, which is the use of link elements.
在feed文档中可以看到,每个条目都有一个链接到本身的URL,这是Atom中另一个有用的模式,也是链接元素的用途。
Because Atom clearly separates the roles of the link and content elements, creating such a feed is a straightforward exercise that requires no extensions to the core Atom namespace.
因为Atom明确区分了link和content元素的角色,创建这样的提要(feed)非常简单,不需要扩展核心atom名称空间。
应用推荐