RSS / Atom Feed Formats Reference

RSS 2.0 and Atom 1.0 required and optional elements with namespace context.

Searchable RSS 2.0 and Atom 1.0 element reference showing the required flag, channel/feed versus item/entry level, content model and date format for every common feed element.

What is the difference between RSS 2.0 and Atom 1.0?

Both are XML syndication formats. RSS 2.0 is simpler and uses RFC 822 dates, but its spec leaves many things optional. Atom 1.0 is an IETF standard with stricter requirements: every entry needs an id, title and updated timestamp using RFC 3339 dates.

RSS 2.0 and Atom 1.0 at a glance

Web feeds let readers and aggregators subscribe to a site’s updates. Two formats dominate: RSS 2.0, the simpler and older syndication dialect, and Atom 1.0, the stricter IETF standard. This reference lists the common elements of both, flags which are required, and shows whether each lives at the feed level or the per-item level.

How it works

A feed is an XML document with a single feed-level container holding metadata plus a repeating per-item container:

<rss version="2.0">
  <channel>
    <title>Example</title>
    <link>https://example.com</link>
    <description>Latest posts</description>
    <item>
      <title>Post</title>
      <guid isPermaLink="false">tag:example.com,2026:1</guid>
      <pubDate>Wed, 02 Oct 2002 13:00:00 GMT</pubDate>
    </item>
  </channel>
</rss>

In Atom the container is feed with repeated entry elements, and the required fields are stricter: id, title and updated are mandatory on both the feed and every entry. Dates differ too — RSS uses RFC 822, Atom uses RFC 3339.

Tips and notes

  • Always include a stable guid (RSS) or id (Atom) so readers de-duplicate entries.
  • Podcasts attach media with an RSS enclosure carrying url, length and type.
  • Add a rel="self" link so validators and aggregators find the canonical feed URL.
  • Set the correct content type: application/rss+xml or application/atom+xml.