WEBSITE DEVELOPMENT
Each RSS file contains information about your website and your description, all surrounded by matching start and end tags. The information and its tags are called an "item." Your RSS file will have to include at least one item. Generally, items are web pages that you'd like others to link to.
Each item contains a TITLE, LINK, and DESCRIPTION. Start by placing the opening <item> tag at the top, then place the closing </item> tag at the bottom, like this:
</item>
Add the <title> tag, following with the text of your title, then end with the </title> tag. It would look like this:
Next, add your link information, beginning with <link>, following with the actual hyperlink, then closing with </link>, to look like this:
For your description, you start with the opening <description> tag, then following with the actual description, then closing with the </description> tag. Now you have this:
If you have other stories you want to syndicate, you simply add more items. You can have up to 15 items, all stacked one above the other. Newer items are usually inserted at the top, with old items being removed from the bottom as they are replaced by new ones. Your code would look like this:
Having defined items you want to distribute, you need to define your site as the "channel." You'll use the same tags as with the items: title, description and link. However, this time the information will be about your entire site, rather than a particular page. Your channel information would look like this:
There are a few last things you need to do.
First, you need to define the XML version you are using. You do this by adding the <?xml version="1.0"?> tag at the very top of the file, which says that this is written according to the XML 1.0 specifications.
Then, you have to declare what RSS version you are using. Everything you've done here is compatible with UserLand's popular RSS 0.91 version. However, it also matches UserLand's latest RSS 2.0 version. So you'll define the file as meeting that specification. You do this by adding: <rss version="2.0">
After the RSS tag, you need to add an opening <channel> tag. Altogether, this would be at the top of the file:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
At the bottom of the file, after all the items you want to syndicate, you have to insert the closing channel </channel> and RSS tag </rss>, in that order. The finished RSS format would look like this:
Once you've created and validated your RSS text file, register it at the various aggregators, and watch the hits roll in. Any site can now grab and display your feed regularly, driving traffic your way. Whenever you update your RSS file, all the external sites that subscribe to your feed will be automatically updated. What could be easier?
Content Syndication with RSS by Ben Hammersley
Syndicating Web Sites with RSS Feeds For Dummies
Essential Blogging by Shelley Powers
Beginning RSS and Atom Programming by Danny Ayers
Developing Feeds with RSS and Atom by Ben Hammersley
Podcasting: Do It Yourself Guide by Todd Cochrane