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.

More Resources

Unable to open RSS Feed $XMLfilename with error HTTP ERROR: 404, exiting

More Blogging/RSS Information:

Related Articles

How Weblogs can Help Realtors
What is a weblog, well simply put a weblog is a journal that is kept online. In it's simplest form a weblog will have an article every day or week that says what the person is doing.
Amazing Information About Blogging
A few months back, at the ITEA conference I saw this guy sitting next to me typing constantly into his wireless laptop. He was making notes on what the speakers had to say, was finding relevant links and then hitting the send key - instantly updating his Web site.
Gentlemen Prefer Blogs
According to a recent survey, gentlemen prefer blogs to the tune of 75 percent; roughly 25 percent of blog frequenters are female. But I want to invite all you ladies to invade the male space.
RSS Feeds Future Revealed
I don't claim to be a futurologist or an RSS pioneer but I have been keeping a pretty close eye on RSS and how it has been evolving. From what I have seen so far I think I can make some pretty good predictions about where RSS feeds are heading.
The Holy Grail that Online Advertisers, Merchants, Publishers, and Shoppers have been Looking for!
For Online Publishers/RSS Feeds users - RSS (Real Simple Syndication) is a popular way for online users/publishers to pull news and information from across the web. RSS allows web sites to publish real time content to online users/shoppers easily and the trend is growing.
How Blogs Can Be An Excellent Promotional Tool
Blogs as an online promotional strategy if done right could save you huge dollars in reaching out to people. This is also a medium where you need have absolutely no dependence whatsoever on any professional help and you can do everything yourself.
Marketing With Blogs - Part 3
In part 1 and part 2 of this article series on marketing with blogs, I discussed the reasons why blogs are excellent tools for marketing, and provided some tips on using your blog to sell your products and services online.This article continues with more tips on using your blog to brand yourself and boost your reputation online.
RSS and Blog Marketing for Real Estate
Earlier this month, Realtor Magazine announced that they would be featuring an article about Tampa Bay Realtor John Mudd and the success he has been having in attracting prospects and media attention with his blog on real estate.Since then, many others in the Real Estate market have been curious about how to implement similar strategies to capture leads in their areas.
Marketing With Blogs - Part 2
In part 1 of this article series on marketing with blogs, I discussed the reasons why blogs are excellent tools for marketing.In this article I outline some tips on using your blog as a good vehicle for your marketing communications.
How To Use RSS Correctly
There is no doubt in my mind that RSS is here to stay. RSS is a simple and effective means of communicating your message to your visitors without invading their privacy or spamming them.
Find Out How Microsofts Plans Could Make Your Subscribers Beg You for RSS Content!
Microsoft recently announced that they will be releasing a new browser version sometime this summer. The new browser version was to be released with Longhorn, the code name for their next operating system to replace Windows XP, but they decided that they needed to release it sooner than that.
RSS For Fresh Content & Better Ranking
A lot of commotion was made some time ago when webmasters discovered RSS (Really Simple Syndication) as a method of disseminating information like ezines, articles and website updates.For a while it was even being tauted has the bigreplacement for email marketing.
Blogging For Business Bible
The items covered here are:1) Don't Wait before Blogging.2) Using Blogs to get your site found quickly.
#1 Mistake Most Blogs Do
As much as this might surprise most bloggers, the #1 mistake most blogs are doing is not publishing their content via e-mail, as a supplement to their RSS feeds.Just think about it: while RSS is growing strong, it still only penetrates about 5-6% of the American online population.
What Are RSS Feeds?
RSS stands for "Really Simple Syndication." It's a format thatweb sites and blogs can use to send updated headlines to you viaservices like My Yahoo!.
Make Money Blogging
You have created a blog and your blog is dedicated to a niche industry. Have you ever thought that the blog could make money for you? We would look here in this article, ways and means, to make money blogging.
Small Business: To Blog or Not To Blog
A weblog, or "blog" started out as a personal journal on the Web. They have evolved far beyond that initial concept.
Its Not Enough to Blog
A properly created weblog will do the following for your website: (a) add rich content; (b) add interactivity in the form of user ability to post comments; and (c) if properly set up, can automatically ping major search engines when new posts are made. This results in more frequent spidering of your website by the major search engines, with the fresh content being picked up quickly and increasing your site's ranking.
5 New Internet Marketing Opportunities Through RSS
When it comes to new internet marketing opportunities for your business, RSS just might be the answer you were looking for. Here are just some of the new opportunities it can provide you with ?1.
RSS Feeds Explosion
Gain Massive Exposure For Your ServiceGet your web site listed in Google and Yahoo in day's if not hours, I did, never pay $299 to be listed in Yahoo - you can get your site listed if you have an RSS feed.Googlebot and Yahoo's 'Slurp' bot have never left my server since putting up a RSS feed, and syndicating it through RSS directories where it was quickly found by an eager, info- hungry crowd of affluent types who are looking to spend their disposable income on something that captures their imagination.