Rss Bandit Problem Fixed

Wow.

I can't believe what it took to fix my feed such that Rss Bandit could process it.

I'm just dumbfounded.

Basically, this is the way it looked:

<rss xmlns:blog="urn:blog">
   <blog:info directory="JB\Blog" />
   <channel>
      <!--  Channel stuff goes here... -->
   </channel>
</rss>

This is what I did to fix it:

<rss xmlns:blog="urn:blog">
   <channel>
      <!--  Channel stuff goes here... -->
   </channel>
   <blog:info directory="JB\Blog" />
</rss>

After debugging the Rss Bandit code base, I found out what the problem was. Rss Bandit reads the file using an XmlReader. Basically, it goes through the elements sequentially, and since the next node after <rss> wasn't <channel>, it couldn't find any information in the feed, and that's what was causing the choke. Moving <blog:info> to the end of the document solved it.

But I'm still amazed that the position of my element caused Rss Bandit to choke! What difference does it make where I put that element? From an XML standpoint, it's still the "same" document, right?

Oh, well. It works now. But...wow.

* Posted at 03.24.2005 04:00:57 PM CST | Link *

Blog History