I can't get this to work and I'm sure the answer is obvious.
I'm new to integrating RSS. I'm trying to display RSS feeds on my
website from other URLs. Thanks for any light you can shed on this!
here is my code in a standard .cfm
page-----------------------------------------------------------------
<cfscript>
URLToPull = "
http://www.easycfm.com/syndication/mostviewed.cfm";
</cfscript>
<cfhttp url="#URLToPull#"
method="GET"
timeout="15">
</cfhttp>
<cfscript>
XMLContent = trim(cfhttp.filecontent);
XMLContent = XMLParse(XMLContent);
</cfscript>--------------------------------------------------------------------------------------------
Here is the error I get
-------------------------------------------------------
An error occured while Parsing an XML document.
Content is not allowed in prolog.
The error occurred in D:\Hosting\kapman\somthing\testrss.cfm:
line 26
24 : <cfscript>
25 : XMLContent = trim(cfhttp.filecontent);
26 : XMLContent = XMLParse(XMLContent);
27 : </cfscript>
28 :
------------------------------------------------------------------------------------------------
The tutorial for this is below if your interested, thanks for
any help!!
http://tutorial208.easycfm.com/