Skip to content

Instantly share code, notes, and snippets.

@hober
Created April 3, 2019 17:56
Show Gist options
  • Save hober/4f5dbdabf751e5467374b85fc04c0d60 to your computer and use it in GitHub Desktop.
Save hober/4f5dbdabf751e5467374b85fc04c0d60 to your computer and use it in GitHub Desktop.
Strawman example of representing an audiobook's manifest in Atom (RFC 4287)
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<id>tag:example.com,2019-04-01:flatland</id>
<title>Flatland: A Romance of Many Dimensions</title>
<author><name>Edwin Abbott Abbott</name></author>
<contributor><name>Ruth Golding</name></contributor>
<updated>2019-04-01T12:30:02Z</updated>
<published>2019-04-01T12:30:02Z</published>
<rights type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Published by Librivox. Released under <a
href="https://creativecommons.org/publicdomain/zero/1.0/"
rel="license">CC0 1.0 Universal (CC0 1.0)</a>.
</div>
</rights>
<logo>cover.jpg</logo>
<link rel="alternate" type="text/html" href="toc.html" />
<entry>
<title>Part 1, Sections 1–3</title>
<link href="flatland_1_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-1-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 4–5</title>
<link href="flatland_2_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-2-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 6–7</title>
<link href="flatland_3_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-3-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 8–10</title>
<link href="flatland_4_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-4-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 11–12</title>
<link href="flatland_5_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-5-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 13–14</title>
<link href="flatland_6_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-6-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 15–17</title>
<link href="flatland_7_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-7-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 18–20</title>
<link href="flatland_8_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-8-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
<entry>
<title>Part 1, Sections 21–22</title>
<link href="flatland_9_abbott.mp3" rel="enclosure" type="audio/mpeg" />
<id>tag:example.com,2019-04-01:flatland-9-abbott</id>
<updated>2019-04-01T12:30:02Z</updated>
</entry>
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment