Here’s a method to get an RSS feed with ColdFusion. This will work in ColdFusion 7 and later.

Code walkthrough:

  • Use CFHTTP to generate an HTTP request and handle the response from the server. This should return XML.
  • Use XMLParse to attempt to convert the CFHTTP.FileContent response into an XML document object.
  • If the result is an XML Document, loop through and display the first six items.
  • If the result is not an XML Document, display an error message.