.
| home / authoring / languages / xml / rss / feeds / 1 | [next] |
|
|
By Kris Hadlock
RSS has become the standard data format for communicating news, updates or any other type of information that a company or individual wants to syndicate to a large audience. The name is an acronym that stands for Really Simple Syndication, which is an XML format that consists of designated elements that are consistent for all RSS feeds and conform to the XML 1.0 specification. These elements need to stay consistent to allow for a standardized data format that RSS aggregators can then consume. In this article we'll take a look at the elements in this structure.
An RSS feed always starts with an
The child of the <rss> element is the <channel>. This element is the containing element for the important data or content within the feed.
In order to describe an RSS feed there are some tags that can be added to the beginning of a feed. The required <channel> elements are <title>, <link> and <description>. Optional channel elements are <language>, <copyright>, <managingEditor>, <webmaster>, <pubDate>, <lastBuildDate>, <category>, <generator>, <docs>, <cloud>, <ttl>, <image>, <rating>, <textInput>, <skipHours> and <skipDays>.
1. language The language of the content in the channel. 2. copyright The copyright notice for the content of the channel. 3. managingEditor An e-mail address for the editorial content producer. 4. webMaster An e-mail address for the webmaster. 5. pubDate A date that represents the publication date for the content in the channel. 6. lastBuildDate The last date and time that the content was changed. 7. category Allows for the ability to add one or multiple categories that a channel belongs to. 8. generator The program that created the channel. 9. docs URL for the documentation for the format of the RSS feed. 10. cloud Provides a process to register with a cloud that will be used to notify about updates. 11. ttl Stands for time to live, which tells the length of time the channel can be cached. 12. image Specifies an image file to be displayed in the channel. 13. rating PICS rating for the channel. 14. textInput A text input field that can be displayed with the channel. 15. skipHours Tells aggregators to skip for specified hours. 16. skipDays Tells aggregators to skip for specified days. |
Following is an example of the RSS feed data that can be found in a blog.
RSS feeds are grouped into items, for example an item group could be considered news stories from a news Web site, blog posts from a weblog and so on. The following feed consists of an item from a weblog, which consists of a post. Typically an RSS feed for a weblog has multiple items that represent all of the posts to the blog.| home / authoring / languages / xml / rss / feeds / 1 | [next] |
| ||||||||||||||||||||
Created: March 27, 2003
Revised: Sept 14, 2006
URL: http://webreference.com/authoring/languages/xml/rss/feeds/1