RSS 2.0 with Namespaces

This is a sample RSS 2.0 feed that uses several allowable extension modules in namespaces. The feed is annotated with links that show how each value can be accessed once the feed is parsed.

Caution

Even though many of these elements are required according to the specification, real-world feeds may be missing any element. If an element is not present in the feed, it will not be present in the parsed results. You should not rely on any particular element being present.

Annotated RSS 2.0 feed with namespaces

<?xml version=”1.0” encoding=”utf-8”?> <rss version=”2.0” xmlns:dc=”http://purl.org/dc/elements/1.1/” xmlns:admin=”http://webns.net/mvcb/” xmlns:content=”http://purl.org/rss/1.0/modules/content/” xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#”> <channel> <title>Sample Feed</title> <link>http://example.org/</link> <description>For documentation only</description> <dc:language>en-us</dc:language> <dc:creator>Mark Pilgrim (mark@example.org)</dc:creator> <dc:rights>Copyright 2004 Mark Pilgrim</dc:rights> <dc:date>2004-06-04T17:40:33-05:00</dc:date> <admin:generatorAgent rdf:resource=”http://www.exampletoolkit.org/”/> <admin:errorReportsTo rdf:resource=”mailto:mark@example.org”/> <item> <title>First of all</title> <link>http://example.org/archives/2002/09/04.html#first_of_all</link> <guid isPermaLink=”false”>1983@example.org</guid> <description> Americans are fat. Smokers are stupid. People who don’t speak Perl are irrelevant. </description> <dc:subject>Quotes</dc:subject> <dc:date>2002-09-04T13:54:20-05:00</dc:date> <content:encoded><![CDATA[<cite>Ian Hickson</cite>: <q><a href=”http://ln.hixie.ch/?start=1030823786&amp;count=1?> Americans are fat. Smokers are stupid. People who don’t speak Perl are irrelevant. </a></q> ]]> </content:encoded> </item> </channel> </rss>