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

7 Questions To Ask Yourself BEFORE Staring A Business Blog
Blogging is the latest buzzword in online marketing and PR. But with so many marketers jumping on the blogging bandwagon, few people are giving a thought to whether blogs are really up their alley, or taking the time to consider the best ways of going about it.
The Language of Blogs
I read over a lot of blogs each week, casually surfing one or two of the blog exchanges I belong.I realized yesterday that I seldom read the whole entry unless it's very short.
Choosing Your RSS Reader
If you want to be able to read RSS feeds then you are going to need an RSS reader. The types of RSS reader that are available to you come in two flavours.
Just Tag It!
Tags - Revolutionary or Just Folly?Just another trend or something else?Trends happen overnight! Some catch on fast and explode very quickly into our every day use.Most of these trends you can ignore as silly follyor at the most fine amusement.
Utilize The Power Of Blogs To Market Your Business On A Budget
Budget marketing with blogs is one of today's top methods for cost-effective advertising to the consumers you want to reach, whether they're in your neighborhood or across the global community.'Blogging' is a fairly recent addition to our vocabulary, and it's exactly what you'll be doing if you pursue budget marketing via blogs.
What the Heck is a Blog?
Everybody is talking about blogs. They are everywhere: on the TV, in the newspapers, and all over the internet.
A Person Is Known By the Blog He Keeps
Literature is the soul of the wit. The best source of literature can be now found in blogs.
3 Tips to improve your RSS marketing
3 Tips to improve your RSS marketingYou have created an RSS feed, or maybe you have several feeds and you post at least once a week to keep your RSS subscribers interested. So now you can sit back and watch your hit counter tally up all those extra visitors.
Will The Real Spammer Please Stand Up!
If you have been using opt-in email marketing for sometime, I'msure you might have got accused of spam at some point, evenafter doing everything right.Yes, I'm talking about people who actually agreed to receiveyour email, blaming you for sending unsolicited mail.
How To Profit From Your Home Business Blog
A blog is a simple tool which all affiliate marketers should be utilising to explode their affiliate sales.I set up my blog in about 15 minutes at http://www.
15 Top Blog Marketing Tips
1. Place all your feeds on the following website and the directories listed on this page - http://www.
Business Blogging - 5 Tips to Help You Smashl Through Writers Block
It's inevitable. Everyone hits the wall.
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.
Should Affiliates Really Use Blogging and Pinging To Get Indexed?
There seems to be a huge craze lately with everyone trying to blog and ping to get their websites indexed into the search engines. Although this can be a great tool, all marketers should first understand exactly what they're getting themselves into before starting.
How To Create A Blog
A blog is an online diary or as some people call them a weblog. They can be aboutany topic you would like to comment on.
Profit Pulling Niche Blogs with Wordpress
When it comes to building and creating profit pulling niche blogs niche sites) Wordpress really shines and really beat Blogger.com heads down.
Your RSS Feed Might Look Like Spam
RSS feeds seem to be the breakout technology for the year. With more users turning to them for driving traffic to their site, it's no wonder that a trail of RSS feed spam is following in the wake.
Blogging For Business - Great Reasons For Every Business To Start A Weblog
If Howard Dean's failed political campaign accomplished anything, I would say that it brought to the mainstream the use of something called a weblog or "blog" as it known in cyberspace.A blog is really nothing more than a diary uploaded to the Internet and until about the last 12 months was the realm of the individual who saw it as a way to publish there random (and sometimes disturbed) thoughts.
Details of Getting a Blog
Blogs, the abbreviation of Web Logs (online journals), are becoming more and more popular all the time. People are starting new blogs at an astounding rate so it's safe to assume that there are constantly people out there who want to know how to get a blog going.
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.