How to Create an RSS Feed

An RSS news feed can be used to communicate with your target audience. It is an ideal means of notifying people of new content on your website without the need for them to keep on visiting your site. You can send newsletters to your readership without having to use email and risk being accused of spamming. You will be comfortable in the knowledge that people who request your feed are actually interested in it because they have actively subscribed to it. This article will explain just how to create your own RSS news feed.

There are a couple of ways to create an RSS file, you can use an editor designed for the purpose or you can create a file using a simple text editor. The latter will require you to learn some XML whilst the former will do the hard part for you. First off I will describe an RSS file, there are several versions and I will be showing you version 2.0, the latest RSS version.

An RSS file looks just like an HTML file except it has different tags and the files end in .rss or .xml rather than .html. The file is made up of header information and item information, the item information contains the actual news items.

The first section of the file contains the header information. This states that the file is XML and which version, the encoding used and the version of RSS that you are using. This part of the file is mandatory. Next up is the channel tag, this encloses the whole of the rest of the file. This is followed by a title, description and link which explain the what the feed is about and what website it is associated with. The final part of the header is the optional image information. If you use this the software that is used to parse or read your file can display a small picture such as a logo.

Please note that in these examples I have used square brackets instead of angled brackets.

[?xml version="1.0" encoding="iso-8859-1"?]
[rss version="2.0"]
[channel]
[title]The Widget news feed[/title]
[description]The latest news on widgets[/description]
[link]http://www.widget.com/[/link]
[image]
[title]Widget News[/title]
[url>http://www.widget.com/widget.gif[/url]
[link>http://www.widget.com/[/link]
[/image]

The body of the file is made up of the news items. Each news item is enclosed in the item tag and comprises of a title, a description and a published date. The date needs to be in the format shown in the example below.


[title]Which is the best Widget to?[/title]
[description]In this article we discuss the release of several new widgets, but which is the best widget.[/description]
[pubDate]Sun, 20 Mar 2005 14:38:50 GMT[/pubDate]
[link]http://www.widget.com/the-best-widgets.html[/link]
[/item]

You can have as many items in the feed as you like but many webmasters just show the 10 most recent items to keep the bandwidth usage down and also so not to overwhelm the end user with too many items.

Finally the file is ended with the closing channel tag and a closing RSS tag.

[/channel]
[/rss]

I have covered the basic tags to create an RSS file, there are other tags that can be used and these are explained in the http://blogs.law.harvard.edu/tech/rss (RSS 2.0) specification.

Once you have created your file you will need to verify it is ok, to do this upload the file to your server and then go to this validator to validate the file. Your file is now ready. Now anyone can subscribe to your feed just by pointing their RSS reader to your RSS file.

That is the basics covered. I will be covering other areas in future articles as there is far too much information to fit into a single article.

Allan is the webmaster at http://www.newsniche.com an RSS resource for webmasters. Learn how to use RSS to attract and retain visitors to your site.

In The News:


pen paper and inkwell


cat break through


Writing Quality Blogs

Writing?Blogs?Blogs are on-line journals where people express themselves through writing.... Read More

Building Backlinks With Blogs

The most boring part of getting traffic to a website... Read More

How to Make Money with Your Blog

-- What Is A BlogA blog (or web log as... Read More

Why Every Artist Needs a Blog & How to Create an Artist Blog

As an artist, the key to selling more artwork is... Read More

How To Display RSS Feeds on Your Website

This article is intended as a guide for webmasters who... Read More

What is a Blog? In Plain English Please

If you are fairly new to the Internet, you have... Read More

6 Reasons Why RSS Beats Email Marketing

A brand new marketing tool predicted to replace email is... Read More

RSS Feeds Future Revealed

I don't claim to be a futurologist or an RSS... Read More

Using RSS Feeds to Set Off a Traffic Explosion

RSS, or Really Simple Syndication, is the perfect answer to... Read More

7 Questions To Ask Yourself BEFORE Staring A Business Blog

Blogging is the latest buzzword in online marketing and PR.... Read More

Get the Internet on Your Own Terms

RSS for the Rest of UsI don't know about you,... Read More

Blog Your Affiliate Links

Blogging is a relatively new form of communication, closely related... Read More

#1 Mistake Most Blogs Do

As much as this might surprise most bloggers, the #1... Read More

Sales Marketing: Secrets To Using Blogs (Online Diaries) To Increase Your sales And Profits

These days, everybody is blogging.How about you?You can incorporate blogging... Read More

Feed The Need: 5 Ways To Use RSS To Boost Your Business Or Organizational Success

RSS (it stands for Really Simple Syndication, among other things)... Read More

Advertising in RSS Feeds: Are we risking disaster?

Advertising in RSS feeds is something that Google is considering... Read More

How to Get a Blog on the Internet

Of all people in the world I was easily one... Read More

Find Out How Microsofts Plans Could Make Your Subscribers Beg You for RSS Content!

Microsoft recently announced that they will be releasing a new... Read More

The Power of the BLOG

Can a Blog earn you a prison sentence? Ask Mojtaba... Read More

24 Tips and Strategies on How Everyone Can Blog Right and Get Everybody to Read

By the end of 2004 blogs had established themselves as... Read More

RSS Support in New Microsoft Windows Vista

Microsoft Corp. says that the next version of its Windows... Read More

To Blog Or Not To Blog - A Laymans View

We have now entered the world of blogs! Sounds kind... Read More

Why Every Site Needs RSS

RSS or 'Really Simple Syndication' is not just for Blogs... Read More

Should Bloggers be Helping Google Fix Their PageRank System?

By now, most bloggers have heard the announcement that the... Read More

To Blog Or Not To Blog

Web logs, commonly referred to as "blogs," represent all the... Read More

Blogs And Your Work From Home Internet Business

As a work from home internet business entrepreneur you have... Read More

Using QuickSub To Make It Easier For Your Visitors To Subscribe To Your Feed

You can make it easier for your visitors to subscribe... Read More

How to Promote Your Blog for Free Online

11 Ways to Promote Your Blog1. Ping weblogs.com and other... Read More

Blogging Your Way To Success Part 3

(Continued from Blogging Your Way To Success Part 2)You have... Read More

RSS - The Intelligent Marketing Medium

Are you new to RSS? If so here is a... Read More

7 Tips for Choosing the Right Blog Software for Your New Blog

Choosing the right blog software for your new blog requires... Read More

10 Benefits of Being a Blogger

I have been a blogger since September 2004 but only... Read More

Blogging Tutorial

Let's start at the beginning. What is a 'Blog' and... Read More