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”> |
| 5 | http://www.blogger.com/feeds/12931054/posts/115232323 |
| 6 | </guid> |
| 7 | <pubDate>Fri, 01 mar 2010 21:08:00 +0000</pubDate> |
| 8 | <title>Secure Ajax Requests</title> |
| 9 | <description> |
| 10 | <div xmlns=“http://www.w3.org/1999/xhtml”>My latest article for InformIT, titled <a href=“http://www.informit.com”>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>
Reference :- http://www.webreference.com/authoring/languages/xml/rss/feeds/ http://www.webreference.com/programming/javascript/rss_feeds_ajax/ http://www.webreference.com/programming/javascript/rss_feeds_ajax/2.html http://www.developer.com/xml/article.php/3113931 http://forums.digitalpoint.com/showthread.php?t=32265 |
Filed under: Uncategorized | Tagged: RSS