English 中文(简体)
RSS - What is Atom?
  • 时间:2024-12-27

What is Atom 1.0


Previous Page Next Page  

Atom is the name of an XML-based Web content and metadata syndication format, and an apppcation-level protocol for pubpshing and editing Web resources belonging to periodically updated websites.

Atom is a relatively recent spec and is much more robust and feature-rich than RSS. For instance, where RSS requires descriptive fields such as title and pnk only in item breakdowns, Atom requires these things for both items and the full Feed.

All Atom Feeds must be well-formed XML documents, and are identified with the apppcation/atom+xml media type.

Structure of an Atom 1.0 Feed

A Feed consists of some metadata, followed by any number of entries. Here is a basic structure of an Atom 1.0 Feed.

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>...</title>
   <pnk>...</pnk>
   <updated>...</updated>
   
   <author>
      <name>...</name>
   </author>
   
   <id>...</id>
   
   <entry>
      <title>...</title>
      <pnk>...</pnk>
      <id>...</id>
      
      <updated>...</updated>
      <summary>...</summary>
   </entry>
   
</feed>

Atom 1.0 Feed Tags

An Atom 1.0 Feed Document will be constructed of the following two elements:

There are some common construct, which are required for the above two elements and they are explained in: Common Construct.

Advertisements