Atom feeds specification

The format for Atom feeds is specified in RFC 4287.

Structure

An Atom feed is an XML document with a single feed element as the root.

The items in the feed are represented with /feed/entry elements. These come after the metadata children. The order of the entry elements doesn’t matter.

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>...</id>
  <title type="text">...</title>
  <link rel="self" type="application/atom+xml"
    href="http://example.com/feed.atom"/>
  <link rel="alternate" type="text/html" hreflang="en"
    href="http://example.com/"/>
  <!--snip-->
  <entry>...</entry>
  <entry>...</entry>
</feed>

Feed

Typical metadata provided as children of feed:

Optional:

Entry

Typical metadata provided as children of entry:

Optional:

<entry>
  <title>...</title>
  <link rel="alternate" type="text/html"
    href="http://example.org/..."/>
  <id>...</id>
  <updated>2005-07-31T12:29:29Z</updated>
  <content type="xhtml"
    xml:base="http://example.com/"
    xml:lang="en">
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>...</p>
    </div>
  </content>
</entry>

Author

The author element can be used in feed or entry. It has the following children:

Category

The category element can be used in feed or entry. It has the following children:

References