Consume and Display Atom Feeds w/ Coldfusion

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

  1. Mike
    Posted September 4, 2007 at 11:41 pm | Permalink

    What?! No inspired by or anything! I feel snubbed! =P

  2. Posted September 5, 2007 at 8:01 am | Permalink

    Inspired by Mike Roberto

  3. Posted September 5, 2007 at 8:01 am | Permalink

    THE Mike Roberto

  4. Abbey Warner
    Posted July 29, 2008 at 10:50 am | Permalink

    Thanks for this Atom feed CF script. Works fine!

  5. Tim Crosby
    Posted September 16, 2009 at 9:00 am | Permalink

    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

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Your email is never published nor shared. Required fields are marked *
*
*