我是Atom feed的新手。我想建立一个基本的饲料。我创建了什么网址(并从我的应用程序调用?)。我的Feed需要多少文件?也许只是包含xml的文档,如下所示:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Example Feed</title>
<subtitle>A subtitle.</subtitle>
<link href="http://example.org/feed/" rel="self" />
<link href="http://example.org/" />
<id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
<updated>2003-12-13T18:30:02Z</updated>
<author>
<name>John Doe</name>
<email>johndoe@example.com</email>
</author>
<entry>
<title>Atom-Powered Robots Run Amok</title>
<link href="http://example.org/2003/12/13/atom03" />
<link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html"/>
<link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Some text.</summary>
</entry>
</feed>
我是否需要一个引用包含xml数据的文档的其他html文档?
答案 0 :(得分:1)
答案在你的问题中:
只包含xml这样的文档
联合供稿是XML数据。您可以静态地(XML文件)或动态地实现它们(例如,返回XML字符串的PHP脚本)。
继续,你走在正确的轨道上。