XML technologies / RSS & Atom / RSS 2.0 / RSS 2.0 elements for rich metadata

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

The core RSS 2.0 elements provide only a rudimentary description of a resource. Many additional RSS 2.0 elements describe a complete feed and its components in detail. Only with these elements does an RSS feed become a container for what is often called rich metadata, meaning "rich" or "substantial metadata".

Metadata elements let you characterize a feed from different perspectives: the origin and type of content, authors and rights, technical aspects, and publication frequency. Some elements help aggregators download only new and changed information. Syntactically, these elements fall into three groups:

  1. Elements that can only be descendants of channel: language, copyright, managingEditor, webMaster, lastBuildDate, generator, docs, cloud, ttl, rating, skipHours and skipDays;

  2. Elements that can only be descendants of item: comments, enclosure, guid and source

  3. Elements that can occur at both levels: pubDate and category

  4. RSS also includes elements for adding an image and a text input field to a feed and describing their properties: image, textInput, url together with the familiar elements title and description as descendants of image and textInput. (The element textinput for a text input field is a historical remnant!)

In the RSS 2.0 specification, Dave Winer describes elements that can descend from different elements in two separate places. The meaning of title, description, pubDate and category may differ depending on their ancestors.

For detailed information about correct element usage and examples, see Reference: RSS 2.0 elements.

Defining data formats in RSS 2.0

Correct processing of RSS documents depends especially on the data formats used for the content of the different elements. Only in the elements title and description is the content a simple string; the other elements contain URIs, language codes, dates, and other values. The RSS 2.0 specification generally does not reference formal definitions of content formats. Only time, date, and language formats refer to standards. You have already seen how "underspecified" content formats can cause problems when discussing HTML inside title and description (see the previous page).

   

   

 

 

 

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

back to top