Topic 10: RSS

Introduction


RSS history


RSS evolution

RSS history


Page 5

References on RSS specifications and background


An example of RSS


<?xml version='1.0'?>
<rss version='2.0'>

<channel>
    <title>The New Forest Guardian</title>
    <link>http://newforestguardian.com/index.php</link>
    <description>The New Forest Guardian - Your top local source of
    info for the New Forest area </description>

    <item>
        <title>Open Mapping comes to the New Forest</title>
        <link>http://newforestguardian.com/nfgstory.php?id=2 </link>
        <description>This weekend several volunteers from all over the
        world descend on the New Forest to create a new, copyright-free
        digital map.</description>
        <pubDate>Fri, 22 Sep 2006 12:00:00 GMT</pubDate>
    </item>
    <item>
        <title>Killer Pig on the Loose !!!!!;/title>
          <link>http://newforestguardian.com/nfgstory.php?id=1 </link>
        <description>Man-eating pig attacks New Forest villagers
        </description> 
        <pubDate>Fri, 22 Sep 2006 12:30:00 GMT</pubDate>
    </item>
</channel>
</rss>    


Explanation of example


How is an RSS feed generated?


Auto-generation of RSS feeds


RSS and Blogs


Subscribing to an RSS feed

There are a number of ways to subscribe to an RSS feed:

  1. Newsreader software
  2. Websites such as Bloglines
  3. Directly through your browser: Firefox has integrated RSS support

Newsreader software


RSS-reading websites


Direct browser support


Publicising your feeds


Integrating RSS feeds into other websites


GeoRSS

GeoRSS is a variant of RSS optimised for geographical data, such as points of interest. A GeoRSS feed can be generated from a database of points of interest, in a similar way that a regular RSS feed can be generated from a database of news stories. GeoRSS can then be integrated into online mapping applications using JavaScript mapping libraries, such as those used in Google Maps or OpenStreetMap.

Here is an example of some GeoRSS. It is based on the Atom variant of RSS rather than RSS 2.0. Note how a combination of ordinary RSS (Atom) tags and extensions (beginning with georss:) are present. The extensions include:


Features

The Red Lion

Nice pub on the village green
256
51 -1
pub


The Crown Inn

Decent pub
257
50.99 -1.01
pub


]]>


Exercises

Today's exercise is to create an RSS feed for THE PEOPLE'S PAPER, a well-known daily newspaper. THE PEOPLE'S PAPER website has already been started in this ZIP file; the following pages are present:

Upload these existing pages to your space on Edward. If you login to PHPMyAdmin ( http://edward/phpmyadmin) you will see a table called stories; you will be working with this.