XML technologies / RSS & Atom / RSS 2.0 / The RSS 2.0 vocabulary / Basic information in an RSS 2.0 document

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

channel must always contain the elements title, link and description. The required descendants of channel thus provide the minimum information identifying the collection as a whole: the resource’s URI, its name, and a short description.

As explained on the previous page, at the level of item only either title and link or description are required. The elements title, link and description have the same meaning at the level of channel and at the level of item.

The title element

The title of an individual item, that is, the content of title as a descendant of item, usually corresponds to a heading in an HTML version, marked up, for example, as an h2 or h3 element.

The RSS 2.0 specification calls the content of the element title the channel’s "name", which people use to refer to the information service. If the service has an "HTML website" offering the same content as the RSS file, the content of the RSS element title should match the website’s title. The specification can be interpreted as follows:

"If an HTML document is available at the URI specified in the element link of the RSS document, the contents of its element title and of the HTML element title in head should match."

This clarification is an interpretation; the specification itself is vague here, as in many places. "Title" can also mean the page’s title in ordinary usage, which does not always match the content of the HTML element title.

Feed readers and aggregators generally use the URI in link to create a hyperlink to the corresponding document.

Feed readers use the title as the channel heading. When an item is quoted in another channel the title of the original channel identifies its source.

The description element

description is one of the required elements characterizing a channel. The specification simply defines it as "phrase or sentence describing the channel", meaning a short description of the channel.

The element description thus provides, similarly to a meta element with the attribute description in the head of an HTML document, brief information about a feed or channel. A feed reader may display it, but it often remains hidden. As shown, NetNewsWire displays it in the side drawer to help select channels; otherwise, the context menu’s "Information" command must be chosen. In Bloglines, the content of description is displayed above the entries.

At channel level, description clearly has a "meta" function, holding information about other information: the channel. At the level of item things differ. Here too, description can briefly describe the content of the item. However, description may contain the content of the item in whole or in part. Atom instead has two elements at entry level, named summary and content and an element at feed level named subtitle.

For title see also the page The title element; for description see also the page The description element in the RSS 2.0 reference.

The link element

The third required element under channel is named link. On the page Minimum information you saw that this element allows an RSS document to be interpreted as a description of another document. Inside item, link is optional.

The specification states that link should contain the URI of the HTML website corresponding to the channel. It thus assumes that the channel always corresponds to an HTML page. The examples for the element link as a descendant of item also reference HTML documents. Dave Winer clearly treats RSS here as a metadata format. An RSS channel as a whole and an individual item refer to an HTML document or its fragments.

link as a child of channel and item

As the content of link Dave Winer specifies the URL of the HTML page referenced by an RSS channel and, for a link belonging to an item, the "URL of the item".

The context makes clear that the URL of the item means the URL of the "full story" described in the element item. If the full story is contained in the description of the item, the element link can be omitted at this level, as can the element title. For link see also the page The link element in the RSS 2.0 reference.)

   

 

 

 

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

back to top