日期:2014-01-31  浏览次数:20585 次

Figure 1 Sample RSS 1.0 Document


<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" > <channel rdf:about="http://skonnard.com/blog/rss.xml"> <title>The XML Files</title> <link>http://skonnard.com/blog</link> <description>by Aaron Skonnard</description> <image rdf:resource="http://skonnard.com/blog/images/image.gif" /> <items> <rdf:Seq> <rdf:li resource=" http://skonnard.com/blog/entry1" /> <rdf:li resource=" http://skonnard.com/blog/entry2" /> </rdf:Seq> </items> </channel> <image rdf:about=" http://skonnard.com/blog/images/image.gif"> <title>skonnard.com</title> <link>http://skonnard.com/blog</link> <url>http://skonnard.com/blog/images/image.gif</url> </image> <item rdf:about="http://skonnard.com/blog/entry1"> <title>1st blog entry</title> <link>http://skonnard.com/blog/entry1</link> <description>This is my first blog entry.</description> <dc:date>2004-01-13T17:16:44.9803903-07:00</dc:date> </item> <item rdf:about="http://skonnard.com/blog/entry1"> <title>2nd Blog Entry</title> <link>http://skonnard.com/blog/entry1</link> <description>This is my second blog entry.</description> <dc:date>2004-01-13T17:16:45.9803903-07:00</dc:date> </item></rdf:RDF>
Figure 2 Sample RSS 2.0 Document

<rss version="2.0"> <channel> <title>The XML Files</title> <link>http://Skonnard.com/blog</link> <description>by Aaron Skonnard</description> <image> <url>http://skonnard.com/blog/images/image.gif</url> <title>skonnard.com</title> <link>http://skonnard.com/blog/</link> </image> <item> <title>1st blog entry</title> <link>http://skonnard.com/blog/entry1</link> <description>This is my first blog entry.</description> <pubDate>Wed, 14 Jan 2004 17:16:44 GMT</pubDate> </item> <item> <title>2nd blog entry</title> <link>http://skonnard.com/blog/entry1</link> <description>This is my second blog entry</description> <pubDate>Wed, 14 Jan 2004 17:16:45 GMT</pubDate> </item> </channel></rss>
Figure 3 Sample Atom 0.3 Feed

<feed version="0.3" xml:lang="en-us" xmlns="http://purl.org/atom/ns#"> <title>The XML Files</title> <link>http://skonnard.com/blog/</link> <modified>2004-01-13T17:16:45.0004199-07:00</modified> <tagline>by Aaron Skonnard</tagline> <author> <name>Aaron Skonnard</name> </author> <entry> <title>1st blog entry</title> <link>http://skonnard.com/blog/entry1</link> <created>2004-01-13T17:16:44.9803903-07:00</created> <content type="text/html" mode="xml"> <body xmlns="http://www.w3.org/1999/xhtml"> <p>This is my first blog entry</p> </body> </content> </entry> <entry> <title>2nd blog entry</title> <link>http://skonnard.com/blog/entry2</link> <created>2004-01-13T17:16:45.9803903-07:00</created> <content type="text/html" mode="xml"> <body xmlns="http://www.w3.org/1999/xhtml"> <p>This is my second blog entry</p> </body> </content> </entry></feed>
Figure 4 Sample Blogroll (OPML)

<opml> <head> <title>Aaron's Favorite Blogs</title> </head> <body> <outline type="rss" title="PDC Bloggers" description="PDC Bloggers website" xmlUrl="http://pdcbloggers.net/Feed.rss" htmlUrl="http://PDCBloggers.net" /> <outline type="rss" title="MS