Derik Whittaker



Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
How to Foo-up your RSS feed with a single /

So today I got an IM from Chris Sutton telling me that my RSS feed for DimeCasts.Net was not working.  So being the paranoid guy I am, I immediately started to run in circles like Chicken Little yelling "The Sky is falling, the Sky is falling".  It was not till I became horse and ran out of breath did I realize I needed to fix the thing.

The first thing I did of course was to test the thing, and sure enough Chris was NOT lying (you never know about those guys from Iowa), but what was the cause.  I knew it had worked the day before, what happened.  Oh yea, I actually setup the RSS generation to be a automated process, not manual.

Because I am so new to RSS, and have never created a feed document before I did not want to take the time to learn some third party API (like so I hand rolled my own logic to build the XML Document (don't worry, apart from the data access, it is all of 20-25 lines of code).  Turns out that I put an extra '/' in the URL in the link node under the channel (below in RED).
   <title>DimeCasts.Net -- Inform and Educate in ~ 10 minutes or less</title>

For some reason (again, not an RSS guru) when this happens the URL's for each item gets fooed up.  After a few simple keystrokes the problem was fixed, and as it turns out the sky was not falling.

So what is the moral of this story?  No matter how 'simple' the change, shit can go wrong in a hurry.

Till next time

(P.S., check out DimeCasts.Net)

Posted 05-29-2008 12:06 PM by Derik Whittaker
Filed under:



Wojciech Gebczyk wrote re: How to Foo-up your RSS feed with a single /
on 05-29-2008 4:30 PM

Simply, too small number of unit tests :P

Filed under: Humor... too ;-)

Derik Whittaker wrote re: How to Foo-up your RSS feed with a single /
on 05-29-2008 4:49 PM


Admittedly i did not have nice unit test coverage, or better put quality coverage.  I had the data access covered and that the correct number of items where put into the xml doc, but did not verify each piece of data.

However in this case I did not know that having the trailing / was an issue.

Andrew Pennebaker wrote re: How to Foo-up your RSS feed with a single /
on 06-04-2008 4:43 AM

I'm managing a site like TinyURL, in which users enter URLs to be shortened to tinier ones. I too generate an RSS feed dynamically. In this case I expect a lot of feed items to contain the slash. I guess I should be HTML escaping the URLs then, no?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)