For a few days now Ben Nadel’s blog hasn’t been aggregated on ColdFusionBloggers.org. While this was not a lame attempt by me to stop the rising tide of my competition in the blog world (ok, maybe it was ;), it was an interesting little issue. First off - his feed did return correctly from CFFEED. It wasn’t a bug with the tag (which as you know has a few warts). But when parsing his feed, I noticed something interesting - the publisheddate query column was blank! Now there is a confirmed bug with some date formats, but Ben’s dates were just fine (as far as I knew), until I took a closer look. Here is a sample, see if you can spot the issue:
<title>Ask Ben: Screen Scraping PowerBall Statistics With ColdFusion</title>
<guid isPermaLink=”true”>http://www.bennadel.com/index.cfm?dax=blog:1122.view</guid> <description><![CDATA[ I was spending my free time this (deletia) this us … <a href=”http://www.bennadel.com/index.cfm?dax=blog:1122.view”>Read More</a> » ]]></description> <pubDate>Mon, 14 Jan 2008 08:15:00 EST</pubDate> <category>Ask Ben</category> <category>ColdFusion</category> </item> </code>
Notice his date is on two lines? That was enough to make CFFEED think it wasn’t a valid date. Personally, I think that kind of makes sense and I won’t blame CFFEED for this, but others may disagree.
What made this issue even more difficult was that Ben had not changed his code at all. He had moved servers. Guess what setting changed? The old server was using white space suppression in the admin. I do not recommend people use this feature and this is a perfect example of why. It involves more work, but if you want to control white space, do it the manual way. (More information on this blog entry.)