Working with RSS or ATOM feeds in ColdFusion couldn't be simpler with the Foundeo Feed Parser UDF Library for ColdFusion. Just pass in a feed url, and get back a query.
The feed parser can take a valid RSS 0.9, RSS/RDF 1.0, RSS 2.0, and ATOM 1.0 feed url, and return a query. The format of the query is the same for all feed formats.
Here's an example usage: <cfinclude template="feedparser.cfm">
<cfset feed = parseFeed("http://www.petefreitag.com/rss/")>
<ul>
<cfoutput query="feed">
<li><a href="#feed.link#">#feed.title#</a></li>
</cfoutput>
</ul>
|