How to add a RSS feed to your website

To create a RSS feed for your website you will first need to create the actual feed file. This has the format of:

<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="http://my.netscape.com/rdf/simple/0.9/">
   <channel>
      <title>The feed's title</title>
      <description>The feed's description</description>
      <link>The feed's webpage</link>
   </channel>
   <item>
      <title>The title of an item</title>
      <description>The description of an item</description>
      <link>The item's webpage</link>
   </item>
   .... (other items) ...

You can have many item tags in your feed.

To enable the visitor's browser to see this file you will need to add the following tag to the head of your HTML page:

<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="yourfeed.rdf"/>

The file extension in the code above is not important, so you can have a script generate the feed for you etc..

Last updated: 04/08/2006