[ Team LiB ] |
3.3 RSS 2.0With RSS 2.0, Dave Winer and Userland Software declared the simpler strand of the RSS specification frozen. Small point releases (2.0.1, 2.0.2, etc.) might be made to clarify matters, but for all intents and purposes, development of simple RSS ended with Version 2.0. This is not to say that RSS 2.0 cannot be extended, however. Taking its cue from the RSS 1.0 community's use of XML namespaces, RSS 2.0 can be extended by the use of modules. Figure 3-3 shows a tree representation of RSS 2.0. Figure 3-3. A tree representation of RSS 2.03.3.1 The Specification in Summary
Example 3-3 is an example of RSS 2.0. Example 3-3. An example of RSS 2.0<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>RSS2.0Example</title> <link>http://www.exampleurl.com/example/index.html</link> <description>This is an example RSS 2.0 feed</description> <language>en-gb</language> <copyright>Copyright 2002, Oreilly and Associates.</copyright> <managingEditor>[email protected]</managingEditor> <webMaster>[email protected]</webMaster> <rating> </rating> <pubDate>03 Apr 02 1500 GMT</pubDate> <lastBuildDate>03 Apr 02 1500 GMT</lastBuildDate> <docs>http://backend.userland.com/rss</docs> <skipDays><day>Monday</day></skipDays> <skipHours><hour>20</hour></skipHours> <category domain="http://www.dmoz.org">Business/Industries/Publishing/Publishers/ Nonfiction/Business/O'Reilly_and_Associates/</category> <generator>NewsAggregator'o'Matic</generator> <ttl>30<ttl> <cloud domain="http://www.exampleurl.com" port="80" path="/RPC2" registerProcedure= "pleaseNotify" protocol="XML-RPC" /> <image> <title>RSS2.0 Example</title> <url>http://www.exampleurl.com/example/images/logo.gif</url> <link>http://www.exampleurl.com/example/index.html</link> <width>88</width> <height>31</height> <description>The World's Leading Technical Publisher</description> </image> <textInput> <title>Search</title> <description>Search the Archives</description> <name>query</name> <link>http://www.exampleurl.com/example/search.cgi</link> </textInput> <item> <title>The First Item</title> <link>http://www.exampleurl.com/example/001.html</link> <description>This is the first item.</description> <dc:creator>A.N. Author</dc:creator> <source url="http://www.anothersite.com/index.xml">Another Site</source> <enclosure url="http://www.exampleurl.com/example/001.mp3" length="543210" type" audio/mpeg"/> <category domain="http://www.dmoz.org">Business/Industries/Publishing/Publishers/ Nonfiction/Business/O'Reilly_and_Associates/</category> <comments>http://www.exampleurl.com/comments/001.html</comments> <author>Ben Hammersley</author> <pubDate>Sat, 01 Jan 2002 0:00:01 GMT</pubDate> <guid isPermaLink="true">http://www.exampleurl.com/example/001.html</guid> </item> <item> <title>The Second Item</title> <link>http://www.exampleurl.com/example/002.html</link> <description>This is the second item.</description> <dc:creator>A.N. Author</dc:creator> <source url="http://www.anothersite.com/index.xml">Another Site</source> <enclosure url="http://www.exampleurl.com/example/002.mp3" length="543210" type"audio/mpeg"/> <category domain="http://www.dmoz.org">Business/Industries/Publishing/Publishers/ Nonfiction/Business/O'Reilly_and_Associates/</category> <comments>http://www.exampleurl.com/comments/002.html</comments> <author>Ben Hammersley</author> <pubDate>Sun, 02 Jan 2002 0:00:01 GMT</pubDate> <guid isPermaLink="true">http://www.exampleurl.com/example/002.html</guid> </item> <item> <title>The Third Item</title> <link>http://www.exampleurl.com/example/003.html</link> <description>This is the third item.</description> <dc:creator>A.N. Author</dc:creator> <source url="http://www.anothersite.com/index.xml">Another Site</source> <enclosure url="http://www.exampleurl.com/example/003.mp3" length="543210" type" audio/mpeg"/> <category domain="http://www.dmoz.org">Business/Industries/Publishing/Publishers/ Nonfiction/Business/O'Reilly_and_Associates/</category> <comments>http://www.exampleurl.com/comments/003.html</comments> <author>Ben Hammersley</author> <pubDate>Mon, 03 Jan 2002 0:00:01 GMT</pubDate> <guid isPermaLink="true">http://www.exampleurl.com/example/003.html</guid> </item> </channel> </rss> |
[ Team LiB ] |