Feed format overview

RSS 2.0 is a dialect of XML, and all RSS files must comply with the XML 1.0 specification as published by the World Wide Web Consortium (W3C). RSS feed files typically have file extensions of either .rss or .xml. The Web Content Integrator does not impose any file naming conventions on the feed producer.


RSS 2.0 feed file format

The most commonly used media type options are "text/xml" and "application/rss+xml". The choice of media type does impact how the Web Content Integrator is able to determine the character encoding of the feed. If the character encoding cannot be determined correctly, the Web Content Integrator will produce errors when parsing the feed. Therefore it is important to choose an appropriate media type for environment.

Following the XML prolog, an RSS 2.0 file begins with a single <rss> element. This element has one required attribute, "version", which must be set to "2.0". The file must also contain a single <channel> element which contains a number of sub-elements that provide some metadata about the feed as a whole. The <channel> element must contain one or more <item> elements. The <item> elements in turn contain sub-elements which provide information about the content that is being syndicated. For example:

<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Sample Feed</title>
      <link>http://www.ibm.com/feeds/sample.rss</link>
      <description>An example RSS Feed</description>
      <lastBuildDate>Tue, 31 Oct 2006 10:31:00 EST</lastBuildDate>
      <item>
         <title>News Item Two</title>
         <link>http://www.ibm.com/news/two.htm</link>
         <description>
         This is a summary of the second news article
         </description>
         <pubDate> Tue, 31 Oct 2006 10:31:00 EST</pubDate>
      </item>
      <item>
         <title>News Item One</title>
         <link>http://www.ibm.com/news/one.htm</link>
         <description>
         This is a summary of the first news article.
         </description>
         <pubDate> Tue, 31 Oct 2006 10:30:00 EST</pubDate>
      </item>
      </channel>
   </rss>

If non-ascii data is used in a feed, then encoding="UTF-8" must be specified in the feed: <?xml version="1.0" encoding="UTF-8"?>


Channel-level Elements

Each RSS feed file must contain only one channel element. There are a number of allowable sub-elements of the channel which provide some metadata about the channel itself. The following elements are either required or used by the Web Content Integrator.

title

link

description

lastBuildDate


Item-level Elements

For the purposes of the Web Content Integrator, each item in the feed represents an item type. The following item types can be created or updated via the feed:

The following sub-elements are either required or used by the Web Content Integrator:

title

link

description

pubDate

guid

category

author


Work with IBM Web Content Integrator

December 14, 2011
   

 

Updated description of GUIDs Apr 1, 2011 1:26:17 PM

});


+

Search Tips   |   Advanced Search