160 likes | 175 Views
RSS. Really Simple Syndication. RSS is a web content syndication format RSS documents are XML and must conform to the xml 1.0 recommendation RSS files are used to keep subscribers informed about the most recent updates to news, blogs, discussion groups, site postings, etc. Overview.
E N D
RSS Really Simple Syndication
RSS is a web content syndication format • RSS documents are XML and must conform to the xml 1.0 recommendation • RSS files are used to keep subscribers informed about the most recent updates to news, blogs, discussion groups, site postings, etc. Overview
First began as scripting news in 1997 • RSS 0.90 was designed for use with Netscape 1999(had an RDF header) • RSS 0.91 (1999) more standard, no RDF header • RSS 0.92 which is 0.91 with optional elements • RSS 1.0, Developed by a private group at O’Reilly –again has an RDF header (2000) • RSS 2.0 –basically a modification of 0.92 (2003) Versions of RSS
The root element of the document is <rss version=“2.0”> It has no namespaces, though namespaces can be added to accommodate extensions to rss and inclusion of other xml vocabularies The <rss> element has a single child, the <channel> element Basics of RSS 2.0
The <channel> element can contain several elements. Most contain metadata about the rss feed • Three elements are required and several are optional • Additionally the <channel> element contains one or more <item> elements • The <item> elements contain the description and links of the syndicated content The <channel> Element
A channel many contain any number of items • The items may represent a link to a story or a resource or they may be complete in themselves • All child elements of <item> are optional however at minimum at least a title or description must be present The <item> Element
<?xml version="1.0"?> <rss version="2.0”> <channel> <title cf:type="text">Lift Off News</title> <link>http://liftoff.msfc.nasa.gov/</link> <description>Liftoff to Space Exploration.</description> <language>en-us</language> <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate> <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate> <docs>http://blogs.law.harvard.edu/tech/rss</docs> <generator>Weblog Editor 2.0</generator> <managingEditor>editor@example.com</managingEditor> <webMaster>webmaster@example.com</webMaster> <ttl>5</ttl> RSS Example Channel Metainformation
<item> <title cf:type="text">Star City</title> <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link> <description>How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's Star City.</description> <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate> <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid> </item> <item> <title>Space Exploration</title> <link>http://liftoff.msfc.nasa.gov/</link> <description>Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a partial eclipse of the Sun on Saturday, May 31st.</description> <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate> <guid>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</guid> </item> </channel> </rss> RSS Example Items
Much of the material for this slide show came from • http://cyber.law.harvard.edu/rss/rss.html • Theirs is the definitive document for defining RSS 2.0 Reference