How to Create an RSS Feed
Brian Gongol


What is an RSS Feed?
An RSS feed is a simple method of distributing information about updates to a website through the use of a small text file. People are learning how to read RSS feeds using a variety of tools, including the "Live Bookmarks" feature in Firefox, the tools available through services like My Yahoo and Bloglines, and e-mail readers.

What are the Benefits to Providing an RSS Feed?
In short, a well-managed RSS feed is an efficient way of driving lots of regular traffic to a website. RSS allows the visitor to make note of interesting websites and receive regular notice when those interesting sites are updated. Instead of sitting stagnant like ordinary bookmarks or being forgotten like most websites, sites with RSS feeds actively deliver notice of their updates to the people most interested in seeing them.

How to Set Up an RSS Feed
First, create a suitable location on your website where you can quickly locate the file. If you will be updating the RSS feed by hand, the more logical the route to the location, the better. In most cases, the smartest way is to create a directory named "rss". As a result, you should have a directory that looks like this:
http://www.YOURDOMAINNAME.com/rss/
Next, open Notepad and save a file named "index.xml". Use "Save As..." (not just "Save") and change the "Save as type" to "All files."
Save As...

Save as Type
At the top of the file, you'll need to include some basic information about the feed itself. Copy and paste the following at the top:
<?xml version="1.0" ?> 
<rss version="2.0">
Keep the spacing exactly as shown. After that basic info, you'll need to identify some things about the feed itself. Enter the following:
<channel>

<title>ENTER THE NAME OF YOUR FEED HERE</title>
<language>en-us</language> 
<link>ENTER YOUR URL HERE</link>
<description>ENTER A BRIEF DESCRIPTION OF YOUR SITE HERE</description>
Here's what those do: Next, you'll create an "item". This is a description of a specific update (usually a new page) that you've added to the website. Create an item like this:
<item>
<title>ENTER THE TITLE OF YOUR UPDATE</title> 
<pubDate>ENTER THE DATE OF THE UPDATE IN THIS FORMAT: Tue, 11 Apr 2006 00:01:10 CDT</pubDate>
<link>ENTER THE LOCATION OF THE UPDATE</link> 
<description>ENTER A DESCRIPTION OF THE UPDATE</description> 
</item>
Here's what those do: One note of caution: RSS feeds can be "pulled" by any other website -- so anything posted in an RSS feed may appear on another website. It's for this reason that most users are encouraged to use the "Description" field as a summary, rather than as a site to place the entire update. Otherwise, other sites can use all of your content and present it as their own.

Create a new Item for every update you add to the page. In general, it's recommended to keep the total number of items under 15.

At the end of the file, enter the following:
</channel>

</rss>
Save the file again and upload it to the directory you created at the beginning.

When you're done, the file should look like this:
<?xml version="1.0" ?> 
<rss version="2.0">

<channel>

<title>ENTER THE NAME OF YOUR FEED HERE</title>
<language>en-us</language> 
<link>ENTER YOUR URL HERE</link>
<description>ENTER A BRIEF DESCRIPTION OF YOUR SITE HERE</description>

<item>
<title>ENTER THE TITLE OF YOUR UPDATE</title> 
<pubDate>ENTER THE DATE OF THE UPDATE IN THIS FORMAT: Tue, 11 Apr 2006 00:01:10 CDT</pubDate>
<link>ENTER THE LOCATION OF THE UPDATE</link> 
<description>ENTER A DESCRIPTION OF THE UPDATE</description> 
</item>

</channel>
</rss>
Of course, you may have many items, and everything in CAPS should be replaced with your own information. Finally, you'll need to add the following information to the top of your homepage:
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.YOURDOMAINNAME.com/rss/index.xml">
This should be located between the
<head>
and
</head>
tags. With these tags, your site will tell RSS-enabled browsers (like Firefox) that your site has an RSS feed. Ideally, you will add the above code to every page on your site, but if it appears nowhere else, be sure it shows up on the homepage. Additionally, you should add some sort of visible link to your RSS feed somewhere on the page.

This guide is intended as a simple primer for creating a basic RSS feed. For more details, see the RSS Specifications at Harvard University.