Skip to content

Instantly share code, notes, and snippets.

@jonm
Created August 31, 2012 03:06
Show Gist options
  • Save jonm/3548446 to your computer and use it in GitHub Desktop.
Save jonm/3548446 to your computer and use it in GitHub Desktop.
Sample list represented as application/atom+xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Example Atom List</title>
<link rel="self" href="http://www.example.com/list"/>
<!-- note that we can provide hints of other list media types
supported by this server by providing links with the
link relation "alternate" and filling in the @type
attribute on them -->
<link rel="alternate" href="http://www.example.com/list" type="text/uri-list"/>
<updated>2003-12-13T18:30:02Z</updated>
<author>
<name>John Doe</name>
</author>
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
<entry>
<title>Raindrops on roses</title>
<link rel="self" href="http://www.example.com/123"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Something to give you a little hint about what's in here.</summary>
</entry>
<entry>
<title>Item #2</title>
<link rel="self" href="http://www.example.com/123"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<!-- Atom affords carrying structured semantic data in the
<summary> element; e.g. HTML5 microdata. Note that
RFC4287 requires us to escape the HTML inside, as
it may not be well-formed XML -->
<summary type="html">
&lt;div itemscope itemtype="http://schema.org/Product">
&lt;span itemprop="name">Crisp Apple Strudel&lt;/span>
&lt;div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
&lt;a itemprop="url" href="http://www.amazon.com/Yankee-Candle-22oz-Jar-Strudel/dp/B005R415D0/ref=sr_1_1?ie=UTF8&qid=1346382152&sr=8-1&keywords=crisp+apple+strudel">Buy me&lt;/a>
&lt;/div>
&lt;/div>
</summary>
</entry>
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment