. The Anatomy of an RSS Feed - WebReference.com-

spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / authoring / languages / xml / rss / feeds / 1 current pageTo page 2
[next]

Presentation Specialist
Aquent
US-NC-Durham

Justtechjobs.com Post A Job | Post A Resume
Developer News
Intel's Building Blocks Thread Open Source
What Lies Ahead for SOA?
Novell Turns ICE Into Kablink

The Anatomy of an RSS Feed

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 element, which contains an attribute called version, which specifies the version of the RSS feed. Here we focus on the RSS 2.0 format because it's the most commonly used today.

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 current pageTo page 2
[next]



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Simple Comments Release Notes: v.960 · Adding Client Capabilities to Server Controls Using the ASP.NET AJAX Control Toolkit · How to Create an Ajax Autocomplete Text Field: Part 10
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Data Corruption: Dedupe's Achilles Heel · AccessLine Launches SOHO VoIP Product with Costco · Cisco to Acquire Pure Networks

Created: March 27, 2003
Revised: Sept 14, 2006

URL: http://webreference.com/authoring/languages/xml/rss/feeds/1