XML technologies / RSS & Atom / Atom / Publishing with the Atom Publishing Protocol / Document format

(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)

The Atom Publishing Protocol uses the Atom format for documents exchanged between client and server. Message content is therefore not removed from its XML representation and packaged as Remote Procedure Call parameters, as happens with older weblog APIs.

When using the Atom Publishing Protocol, documents must meet some additional conditions beyond the format’s rules. Documents retrieved via FeedURI and EditURI must contain the element atom:id, as must documents sent to the server via EditURI. When a document is first sent to the server via PostURI, however, the element atom:id may still be absent; it is then added by the server. The element atom:link is also required when communicating via FeedURI and EditURI. With PostURI, it can be used to determine the URI of the resource created on the server. The element always required is title, although it may be empty because not every entry needs a title. Titles should not be generated by the server. The elements summary, content, author and contributor have no special rules. A publication date is always required; a modification date must never be specified when using PostURI. The draft protocol specification requires the element generator to be present whenever PostURI is used; it then identifies the code base used to generate the request. In this case, a version number is also mandatory as the value of the attribute version.

   

 

 

 

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

back to top