CarpWannabe

All code licensed under the Apache 2.0 license.

Use this code to load and parse an rss feed. It does about every rss (and some atom) feed I could find that was reasonably well formed.

	<!--- create rss reader object --->
	<cfset i = createobject('component','rssreader')>
	
	<!--- set the feed --->
	<cfset i.setfeed("http://rss.news.yahoo.com/rss/tech")>
	
	<!--- set an email that you wish any errors to go to --->
	<cfset i.setemail("d@webmachineinc.com")>
	
	<!--- set how long you wish to cache for. Hours I believe. --->
	<cfset i.setduration(2)>
	
	<!--- show it --->
	<cfoutput>#i.show()#</cfoutput>
	

You can use it to display news items that will change on a daily basis thereby showing your browsers new and interesting information at each visit.

Download