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

RSS Works: Hard Metrics to Prove It
Marketers are constantly asking if RSS marketing works and if this can be proved.It's time to take a look at some real-life RSS metrics from real-life marketers.
Bloggin for a Reason
For some it's just a fun thing to do, while some others feel they will soon be left out; they soon join the crowd. Everyone who uses the internet knows someone who has a blog.
Will RSS Replace Email?
RSS is a big buzz word right now, and this question has been popping up all over the place.Will RSS ever replace email?In short, the answer is no.
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.
Blogging Is Not Important - Its Crucial
It has been established that having a 'blog' helps your web site gain visitors and higher rankings in search engines. But a small study which I have just completed shows that blogging is much more important than this.
Blogging will Soon Take Over the World
In recent years, it's been pretty obvious that "blogging" (Web + Log = Blog) has simply taken over the internet.Early blogs were first used by creative (bored?) indivuals, and larger news companies.
Top 10 Ways to Get People Online to Read Your Business Blog
There are many advantages of running a blog, on top of your business website. A blog is an online diary, whereby you can easily posts clips about yourself, your thoughts and your personal life.
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.
Get Website Visitors From Blogs
Blogs are becoming more and more popular.The word "blog" is short for web log.
The Basics of Blogging to Niche Markets
In the previous article, we discussed how blogs can help you generate traffic for your main website. But what if you don't have another site?
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) is a relatively new technology that allows anyone who creates frequently changing web content - news, blogs, current events, etc. - to deliver their messages to interested readers with no fuss, no muss and best of all - no spam! Currently, RSS is being used by content-rich sites (mainly blogs and news centers) to keep readers up-to-date on newly published posts or breaking stories.
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 into your sales marketingand achieve more success.
How To Build Traffic To Your Blog
With the growing interest in blogging as a means of online promotion and branding, a lot of marketers are starting blogs to promote their opinions, products, books and services. But a blog is like a website.
How To Add Random RSS Content To Your Site
Most savvy internet marketers will know how important it is to have fresh content added to their sites on a daily basis but the problem sometimes is to find the time and/or content. Adding an RSS feed is a good way to add fresh content to a site, but the problem again is that most of them only get updated on a weekly basis.
Is Blogging For You? Take This Quick Quiz
What The Hell Is A Blog Anyway?The word 'blog' is a shortened version of 'web blog'. A 'web log' just means a log or diary-type entry on the web.
To Blog Or Not To Blog - A Laymans View
We have now entered the world of blogs! Sounds kind of Harry Potterish, doesn't it?If you're over 20 years old, you probably think this is some crazy sci-fi phenomenon, or I've simply lost my mind. Don't fret, the vast majority of people don't know what a blog is all about and more importantly, why it matters to them.
Blog Marketing: Guerrillas Stalk the Internet
Blogs, are often defined as frequent and ongoing publications of personal thoughts and opinions of the Internet or websites. And, of course - all of certainly know what Marketing is.
The 7 Steps to Promoting Your RSS Feeds on Your Website
RSS gets 100% of your content delivered, but it's no good if no one subscribes to your feeds.So your first order of business after planning and creating your feeds has to be promoting them to your visitors.
How To Create A Blog
Blogs are more permanent than posts to an online discussion list, more dynamic than older-style home pages. They are more personal than traditional journalism, and definitely more public than diaries.
Why Would You Use Blogs Instead of a Web Site For Your Online Business?
Why would you use Blogs instead of a web site for your online business?What's wrong with using a web site for conducting your online business? How can Blogs help and why should I need one anyway?Combining a website and a Blog however offer a number of superior advantages in terms of traffic generation, marketing and efficiency which a stand-alone website cannot do.(a) Automatic push-button publishing.