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

A Blog Isnt Just For Christmas
I was watching the news on TV last night and there was a warning about buying puppies as Christmas presents. There's nothing worse than visiting the kennels in the new year and seeing all those unwanted dogs that were chosen as presents because they were so cute at the time.
Increase Traffic to Your Blog from Search Engines - The Top 5 Tips
Your favorite thing about having a blog may soon be this - they naturally attract search engine traffic.Blogs already have optimized site architecture.
Marketing With Blogs - Part 1
Marketers have found that blogs are excellent tools for communicating with their audience. Anyone who has something to sell or an idea to promote can benefit from using blogs.
Should Bloggers be Helping Google Fix Their PageRank System?
By now, most bloggers have heard the announcement that the Big 3 search engines - Google, Yahoo, and MSN - have united in support of a new tag that will supposedly combat comment spam. The new tag is a nofollow attribute that can be added to links.
The Art of Business Blog Writing
"It is precisely minds of the first order that will never be specialists. For their very nature is to make the whole of existence their problem; and this is a subject upon which they will every one of them in some form provide mankind with a new revelation.
So You Have a Blog, Now What Do You Do With It? Blog Basics
(This article assumes that you have already set up a blog on your website. I highly recommend using sBlog: http://servous.
Blogging Tutorial
Let's start at the beginning. What is a 'Blog' and why would you care?Plain and simple.
How and Why to RSS
RSS feeds and blogs (and blog and pinging) are part of the latest hyper-frenzy in internet marketing. Tools and services are mushrooming all over.
RSS Can Keep You In The Loop
When webmasters first hear about RSS they tend to concentrate on the promotional side of things. They want to know how it will bring more traffic to their site and get them higher rankings in the search engines.
10 Benefits of Being a Blogger
I have been a blogger since September 2004 but only began to take it seriously this year. My blogging journey began when I stumbled upon a company owned by Google named Blogger.
How To Make A Cool Xanga
A xanga is something akin to a blog. It all began in 1999 and the xanga community is 2.
Should You Get A Blog?
A blog is a type of website. It allows the website owner to easily write messages that get posted to the site automatically, often in a journal or diary-like style.
Strategic RSS Positioning: How to Hotwire Your Site to Google!
There's no denying it, the Internet has changed. The change was so subtle most people missed it.
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.
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.
Steps To Creating and Promoting RSS Feeds
RSS, or Really Simple Syndication as it is commonly known, is a technology that gives webmasters the ability to easily distribute and publish syndicated content on the Internet. It seems like all Internet businesses now have RSS feeds available; at least your competitors do.
RSS for Bloggers
While syndication has many applications, we will deal specifically with its use for blog content and some technical information will be included at the end of this article.If you have any interest in blogs or weblogs as a publishing format, then you have undoubtedly come across the term R.
Blogging Your Way To Success Part 1
It has been said that blogging will be the new trend in the 21st century. It is easy to see why.
Blogs As A Marketing Tool
Blogs are the biggest things to happen to the Internet since personal home pages. Blogging software has made it easy for the average Joe to create his own blog,and the thriving community of bloggers have spurred designers to release completely free, and professionally looking templates.
RSS Meets the Needs of Direct Marketers
Contrary to general opinion, RSS meets the needs of even the most demanding direct marketer, actually providing most of what e-mail marketing does, except for the strong push factor.Most direct marketing reasons against RSS are in fact the result of inadequate understanding of RSS by most marketers.