faithfulgeek.org

Agile web development

Implementing an RSS Feed

November 1st, 2007

I recently implemented an RSS feed for Road and Travel here. I learned an important lesson working on that feature.

Some developers prefer to loop through their results and manually build the XML necessary for an RSS feed. While this method may work, it is very difficult to maintain & you lose compatibility with other syndication formats (such as Atom or RDF). I implemented this feed using the ASP.NET RSS Toolkit. It was very easy, maybe 20 lines of code. It seems fairly lightweight, at 122kb, and supports multiple syndication formats out of the box.

When it comes to implementing a feature like this, don’t discount third-party frameworks. They may greatly improve the maintainability of your code, and allow you to write your code much more quickly.

Sorry, comments are closed for this article.