Create an RSS feed in ColdFusion
I haven't posted since... well many months ago. Anyway I was reading Ray's blog entry today on creating an RSS feed with ColdFusion and the entry by Pete Freitag that he mentions on Howto Create an RSS 2.0 Feed.
I was dealing with this on my work site recently. I was tasked with creating a podcast feed, so I got down and dirty trying to find something that would easily let me create a podcast RSS feed in ColdFusion. I really couldn't find anything. There were lots of feed consumers in both java and ColdFusion, but nothing that would create the feed very easily. So I ended up writing my own set of CFCs to create it with objects. My purpose was to not only provide a solution to the podcast problem, but also to rework some of my old RSS feeds around our site that were still throwing out RSS 0.9x. The CFCs can take an argument when you generate the feed and will output different RSS XML depending on what you choose. So the beauty of this is that when the next feed type comes around, I just update the components to output in that new format, change my attribute in the generate() call and wa-la, I have the new feed.
Anyway, the CFCs are just about ready for distribution, I just need to add a license to them and an example or two of using them. Maybe tonight!
