Skip to main content
Known Participant
March 20, 2009
Answered

XML Feed as a Datasource?

  • March 20, 2009
  • 1 reply
  • 886 views
Hi Everyone,

I have been away from the whole CF and webdev world for a few years so I have some catching up to do - please bear with me :)

I am putting together a site that pulls product listings from a third party's XML feed and then uses their site for credit card transactions etc. I have never worked with XML feeds before so I Googled around a bit looking for some basic info. I came across this page:

http://www.adobe.com/devnet/articles/xml_resource_feed.html

and found this statement : "You can use the XML feed as a data source within ColdFusion to create dynamic content for an HTML page or Macromedia Flash application."

Does this mean that I can simply create a datasource on my CF box, point it to the XML feed and then just query it like a normal mySQL or Access DB? Or (as I strongly suspect), am I missing something??

If I have to get immersed in XML does anyone know of a good primer on hooking an XML feed into a CF site?

Thanks,
Paul.
This topic has been closed for replies.
Correct answer BKBK
<cffeed>.

For example, run the following

<cffeed action="read"
query="rssQuery"
source=" http://rss.news.yahoo.com/rss/topstories">

<cfdump var="#rssQuery#">



1 reply

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
March 22, 2009
<cffeed>.

For example, run the following

<cffeed action="read"
query="rssQuery"
source=" http://rss.news.yahoo.com/rss/topstories">

<cfdump var="#rssQuery#">



Known Participant
March 22, 2009
OK, thanks for that. I'll take a look at the <cffeed> tag documentation and try running the code that you sent.