How Do I Create An RSS Feed?

Permenant Link To: How Do I Create An RSS Feed?


Its Mailbag Wednesday...

I asks: Can you help and direct me to where I can find information on how to create XML feeds and buttons? I want to implement this for my customers but as it is all new to me I am finding it hard to know where to start.

Answer: Hey I, glad to see you're jumping on board!

It's important to realize that an XML (or RSS - which is essentially the same thing) feed is nothing more than a text file. You may find that they typically have an .xml or .rss file extension, but its still just a text file - it can be opened in any text editor, such as Notepad.

That being said, it's not just a regular text file, but a text file containing XML, which is a special syntax that essentially allows a regular text file to act as a mini-database, if you will. As in the case of an RSS feed, that mini-database contains news articles, including the articles' headline, date of publication, an article summary, and a link to the full article. You can think of those elements as 'fields' in the database, and each individual article as a 'record' in the database.

Since all RSS feeds are essentially text files (a universal file format) and contain article data with these same 'fields' of information, RSS newsreaders can easily read an RSS feed from any source, which makes it a very powerful, and universal way of managing information.

In other words, if you look at the text within an RSS feed from two different sites (or a hundred different sites), you'll see that they essentially all look the same - the 'database' structure is the same, but the article information contained in the database is different.

How is an RSS feed generated, and updated? Well, if you understand RSS syntax, you can open Notepad (or Apple's SimpleText) and create one yourself, if you wish. However, most people would rather pull out their eyelashes than learn the syntax necessary to do it manually!

The most common way of automatically generating and updating an RSS feed (but certainly not the only way) is to start a blog. Most blogging tools/services take care of generating and updating the feed each time you post a new entry to your blog. All you have to do is tell your blogging tool/service the URL where you wanted the generated feed uploaded to. The result might look something like:

http://www.mydomain.com/feed.rss

This becomes the link to your 'channel'.

To make an XML button where visitors can subscribe to your feed/channel (as you see to the right of the page on my site), you simply point an image or text hyperlink to the URL of the generated feed.

Depending on the newsreader, there are various ways for a visitor to subscribe to your feed, or tell their newsreader to track your feed. But once they have, the newsreader application will regularly load the data within the text file at your feed's URL to see if it contains any updated information since the last time it checked. If it has been updated, the newsreader will alert the user that new items are available.

That's it!

Lab office


3 Comments:
On 1:21 PM, Blogger Jan Kratochvil said:

Thanks for information Derek i will try to make my first RSS feed.

 

On 1:23 PM, Blogger Jan Kratochvil said:

One thing more, the link http://www.mydomain.com/feed.rss was removed?

 

On 3:15 PM, Blogger jazzy said:

There's also a nice feed creation resource at www.rsscreation.com

 

Post a Comment

Posting Guidelines - Please Follow The Rules!

I am happy to provide this commenting feature to enable discussion of the articles posted. In fact, I appreciate and encourage you to participate.

Like everything else I put my name on, I hold this site to a very high standard. What you say in your comments reflect indirectly on me. Therefore, please be aware of the following guidelines/rules for posting your thoughts.

After familiarizing yourself, please post away! :)

Keep it Clean.
Foul and offensive language is not only moronic and childish, but any posts containing it WILL be deleted!
Play Nice.
Posts containing personal attacks of any kind will be deleted. If you disagree with someone's opinion, provide an opposing one, without attacking the person. For example, "Derek, your stance on eating doughnuts will harm future generations." Not, "Derek, you're an idiot, and your stance on eating doughnuts is the dumbest thing I've ever heard..."
Religion and Politics .
Once again, since this site carries my name, posts containing religious and/or political views (nice or not) will be deleted.
Stay on Topic - Where Possible.
I know it's easy to get off on another tangent, and it's not really that big of a deal, but try to confine your comments to the discussion at hand. :)
Add Value.
If you're going to say something, please make it as useful as you can.
Ownership.
By choosing to post here, you understand that as owner of this site, I reserve the right to freely make use of the content within your comment, without first obtaining your permission. Otherwise, comment content belongs to its perspective poster.
Have Fun .
Enjoy participating!
For more detailed information, please be sure to review our privacy policy and terms of service.