XML technologies / RSS & Atom / Atom / Structure of an Atom feed / Overview Atom elements
(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)
As on the pages about the other feed formats, I will now introduce Atom syntax step by step and show the features it enables. The following illustration shows the tree structure of an Atom feed with two entries. Every Atom element occurs at least once in this document.
The document whose structure is shown here was created solely to demonstrate Atom’s capabilities. It is unlikely to correspond to a realistic use case.
The document skeleton illustrates some important properties of the Atom Publishing Format:
The document element of an Atom feed is named
feed. The messages belonging to the feed are namedentry.The functions of some RSS elements are split among several Atom elements. (Instead of the RSS element
imageAtom has the elementsiconandlogo(in Atom 0.8, the element was still namedimage); instead of the RSS elementdescriptionit has the three elementssubtitle,summaryandcontent.)A
entryin Atom can contain content types other than text. In the example, the upperentryelement contains an elementcontentwith descendant XHTML elements.An element of type
entrycan contain metadata from a feed. The second elemententryin the diagram was taken from another feed and carries that feed’s metadata.The Atom elements
entryandfeedcan contain several links with different purposes.
Figure: structure of a complex Atom document
The following pages first discuss an Atom feed’s required elements and thus its basic structure. You will then learn about the metadata that the elements feed and entry can contain in Atom. You will then see how to include different types of content in an Atom document’s information objects. Another focus is the semantics of Atom links.

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
