RSS(Really simple Syndication)

RSS stands for Really Simple syndication / Rich Site Summary .

RSS is used to get standard data format for communicating news , any updates or any thing that indiviual or organisation want to syndicate with large audience .

RSS 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.

An RSS feed always starts with an <rss> element, which contains an attribute called version, which specifies the version of the RSS feed.Today RSS version 2.0 is used world wide.

<rss version=”2.0″></rss>

<rss> element has a child called <channel> that is used  for  containing important data or content with in RSS feed .

<rss version=”2.0″><channel></channel></rss>

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>.

  • language – The language of the content in the channel.
  • copyright – The copyright notice for the content of the channel.
  • managingEditor – An e-mail address for the editorial content producer.
  • webMaster – An e-mail address for the webmaster.
  • pubDate – A date that represents the publication date for the content in the channel.
  • lastBuildDate – The last date and time that the content was changed.
  • category – Allows for the ability to add one or multiple categories that a channel belongs to.
  • generator – The program that created the channel.
  • docs – URL for the documentation for the format of the RSS feed.
  • cloud – Provides a process to register with a “cloud” that will be used to notify about updates.
  • ttl – Stands for time to live, which tells the length of time the channel can be cached.
  • image – Specifies an image file to be displayed in the channel.
  • rating – PICS rating for the channel.
  • textInput – A text input field that can be displayed with the channel.
  • skipHours – Tells aggregators to skip for specified hours.
  • skipDays – Tells aggregators to skip for specified days.

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. Following is an example of the RSS feed data that can be found in a blog.

1 <rss version=“2.0”>
2 <channel>
3 <item>
4 <guid isPermaLink=“false”>
6 </guid>
7 <pubDate>Fri, 01 mar 2010 21:08:00 +0000</pubDate>
8 <title>Secure Ajax Requests</title>
9 <description>
10 <div xmlns=;>My latest article for InformIT, titled <href=;>How to Secure Ajax Requests</a> is on the homepage this week. This article focuses on ensuring that your database-enabled Ajax requests are secure and not leaving your database open for an attack. Enjoy…</div>
11 </description>
12 <link>
13 http://www.annadshahil11.wordpresscom/blog/09/secure-ajax-requests.html
14 </link>
15 <author>anand sharma</author>
16 </item>
17 </channel>
18 </rss>

  • guid – The guid is an element that contains a string that uniquely identifies the item.
  • pubDate – The pubDate is the date that the item was published.
  • title – The title is the title that is specified for the item; in this case it’s the title of the weblog post.
  • description – Contains the main data for the item, this element is used for the body of the weblog post in this case.
  • link – Contains a full URL to the individual page in which the specific item exists in detail.
  • author – Represents the author of the content that is presented within this item group.
  • category – Allows the item to be included into one ore more category.
  • comments – URL of page that contains comments related to the item.
  • enclosure – Can be used to describe a media object if one is attached to the item.
  • source – The RSS channel that the item came from.

Reference :-