Reading an RSS Feed in CFScript (ColdFusion)

Here’s a method to read an RSS feed with CFScript (ColdFusion). This will work in ColdFusion 9.0.1 and later.

Code walkthrough:

  • Use feed to read an RSS feed. This should return a Query object.
  • If the result is a Query Object, loop through and display the items.
  • If the result is not a Query Object, display an error message.

http://pastebin.com/embed_iframe.php?i=xKeDMb49

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s