RSS 2.0

This is a sample RSS 2.0 feed, annotated with links that show how each value can be accessed once the feed is parsed.


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

<?xml version=”1.0” encoding=”utf-8”?> <rss version=”2.0”> <channel> <title>Sample Feed</title> <description>For documentation &lt;em&gt;only&lt;/em&gt;</description> <link></link> <language>en</language> <copyright>Copyright 2004, Mark Pilgrim</copyright> <managingEditor></managingEditor> <webMaster></webMaster> <pubDate>Sat, 07 Sep 2002 0:00:01 GMT</pubDate> <category>Examples</category> <generator>Sample Toolkit</generator> <docs></docs> <cloud domain=”” port=”80” path=”/RPC2” registerProcedure=”pingMe” protocol=”soap”/> <ttl>60</ttl> <image> <url></url> <title>Example banner</title> <link></link> <width>80</width> <height>15</height> </image> <textInput> <title>Search</title> <description>Search this site:</description> <name>q</name> <link></link> </textInput> <item> <title>First item title</title> <link></link> <description>Watch out for &lt;span style=”background: url(javascript:window.location=’’)”&gt; nasty tricks&lt;/span&gt; </description> <author></author> <category>Miscellaneous</category> <comments></comments> <enclosure url=”” length=”1069871” type=”audio/mpeg”/> <guid></guid> <pubDate>Thu, 05 Sep 2002 0:00:01 GMT</pubDate> </item> </channel> </rss>