Atom 0.3

This is a sample Atom 0.3 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 0.3 feed

<?xml version=”1.0” encoding=”utf-8”?> <feed version=”0.3” xmlns=”” xml:base=”” xml:lang=”en”> <title type=”text/plain” mode=”escaped”> Sample Feed </title> <tagline type=”text/html” mode=”escaped”> For documentation &lt;em&gt;only&lt;/em&gt; </tagline> <link rel=”alternate” type=”text/html” href=”/”/> <copyright type=”text/html” mode=”escaped”> &lt;p>Copyright 2004, Mark Pilgrim&lt;/p>&lt; </copyright> <generator url=”” version=”3.0”> Sample Toolkit </generator> <id>,2004-04-20:/docs/examples/atom03.xml</id> <modified>2004-04-20T11:56:34Z</modified> <info type=”application/xhtml+xml” mode=”xml”> <div xmlns=””><p>This is an Atom syndication feed.</p></div> </info> <entry> <title>First entry title</title> <link rel=”alternate” type=”text/html” href=”/entry/3”/> <link rel=”service.edit” type=”application/atom+xml” title=”Atom API entrypoint to edit this entry” href=”/api/edit/3”/> <link rel=”” type=”application/atom+xml” title=”Atom API entrypoint to add comments to this entry” href=”/api/comment/3”/> <id>,2004-04-20:/docs/examples/atom03.xml:3</id> <created>2004-04-19T07:45:00Z</created> <issued>2004-04-20T00:23:47Z</issued> <modified>2004-04-20T11:56:34Z</modified> <author> <name>Mark Pilgrim</name> <url></url> <email></email> </author> <contributor> <name>Joe</name> <url></url> <email></email> </contributor> <contributor> <name>Sam</name> <url></url> <email></email> </contributor> <summary type=”text/plain” mode=”escaped”> Watch out for nasty tricks </summary> <content type=”application/xhtml+xml” mode=”xml” 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>