I’ve recently had need to consume and display an ‘rss’ Atom Feed from a blog I’ve set up using Blogger. Blogger more specifically addresses Intellectual Property for your posts, which was mandatory for this use. I need to display the article feed on various sites, all using Coldfusion as the application server. I also have need to pull only specific entries marked with a certain category for the post.
When I started looking at the XML created for the atom feed it was much more complex then RSS, and a bit problematic to process. When I looked for someone who had tackled this in the past, most if not all, of the current working code was try and buy. Bah, no good. So I tackled it myself, and as the communities reward, here is the code. FREE, as in FREE, YOU DON’T HAVE TO PAY, TAKE IT USE IT. The only condition is that I do not guaranty the code, I most likely will not support the code, and it’s commented well enough that you should be able to use it.
That’s not to say I won’t answer questions posted as comments, I will also take comments on how to make the code better, but I may not release updates.
So what’s it do? It expects a full Atom Feed, it reads it into a variable, it finds the entries in the XML, and pulls the ones marked with a specific category that you can set.
There should be nothing remaining hard coded, the user should be able to set what they need at the top. It’s displayed with simple HTML markup.
Download the cfm file. Change the extension to cfm and enjoy.

5 Comments
What?! No inspired by or anything! I feel snubbed! =P
Inspired by Mike Roberto
THE Mike Roberto
Thanks for this Atom feed CF script. Works fine!
I downloaded the file,but I am getting an error …
I inserted the url of http://blogname.blogspot.com/feeds/posts/default
and changed the blogname to my blog, but it is producing an error.
Thanks
Post a Comment