Atom 1.0ΒΆ

This is a sample Atom 1.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 Atom 1.0 feed

<?xml version=”1.0” encoding=”utf-8”?> <feed xmlns=”” xml:base=”” xml:lang=”en“> <title type=”text“> Sample Feed </title> <subtitle type=”html“> For documentation &lt;em&gt;only&lt;/em&gt; </subtitle> <link rel=”alternate” type=”html” href=”/“/> <link rel=”self” type=”application/atom+xml” href=”“/> <rights type=”html“> &lt;p>Copyright 2005, Mark Pilgrim&lt;/p> </rights> <generator uri=”” version=”4.0“> Sample Toolkit </generator> <id>,2005-11-09:/docs/examples/atom10.xml</id> <updated>2005-11-09T11:56:34Z</updated> <entry> <title>First entry title</title> <link rel=”alternate” href=”/entry/3“/> <link rel=”related” type=”text/html” href=”“/> <link rel=”via” type=”text/html” href=”“/> <link rel=”enclosure” type=”video/mpeg4” href=”” length=”42301“/> <id>,2005-11-09:/docs/examples/atom10.xml:3</id> <published>2005-11-09T00:23:47Z</published> <updated>2005-11-09T11:56:34Z</updated> <author> <name>Mark Pilgrim</name> <uri></uri> <email></email> </author> <contributor> <name>Joe</name> <url></url> <email></email> </contributor> <contributor> <name>Sam</name> <url></url> <email></email> </contributor> <summary type=”text“> Watch out for nasty tricks </summary> <content type=”xhtml” xml:base=”” xml:lang=”en-US“><div xmlns=””>Watch out for <span style=”background-image: url(javascript:window.location=’’)”> nasty tricks</span></div> </content> </entry> </feed>