Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何设置Atom 1.0提要?_Html_Xml_Url_Atom Feed - Fatal编程技术网

Html 如何设置Atom 1.0提要?

Html 如何设置Atom 1.0提要?,html,xml,url,atom-feed,Html,Xml,Url,Atom Feed,我对Atom Feed是全新的。我想设置一个基本提要。我应该创建什么url(并从我的应用程序中调用?)。我的提要需要多少文档?可能只是包含如下xml的文档: <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Example Feed</title> <subtitle>A s

我对Atom Feed是全新的。我想设置一个基本提要。我应该创建什么url(并从我的应用程序中调用?)。我的提要需要多少文档?可能只是包含如下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>

示例提要
副标题。
urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6
2003-12-13T18:30:02Z
无名氏
johndoe@example.com
原子能机器人疯狂运行
urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
2003-12-13T18:30:02Z
一些文本。

我是否需要引用包含xml数据的文档的附加html文档?

答案在您的问题中:

只是包含如下xml的文档

联合提要是XML数据。您可以静态(XML文件)或动态(例如,返回XML字符串的PHP脚本)实现它们

继续,你走对了