When trying a 

<cfdump var="#cfhttp.filecontent#">

I am getting a 'Connection Failure'  ? ??



-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: 21 August 2006 11:12
To: CF-Talk
Subject: Re: Parsing an XML Feed

Yes, I suspect something is inserting characters somewhere. Dump the
CFHTTP result to a file and examine it.

On 8/21/06, Ian Vaughan <[EMAIL PROTECTED]> wrote:
> I am still getting the error, and have changed the feed to a feed from

> the bbc website.
>
> An error occured while Parsing an XML document.
> Content is not allowed in prolog.
>
> The error occurred in F:\xmlrss.cfm: line 15
>
> 13 : <cfscript>
> 14 :   XMLContent = trim(cfhttp.filecontent);
> 15 :   XMLContent = XMLParse(XMLContent);
> 16 : </cfscript>
> 17 : </head>
>
>
>
> I have changed the feed to one from the bbc, a snippet is shown below
>
> <cfscript>
>   URLToPull  =
> "http://www.bbc.co.uk/go/homepage/int/ne/nrss/log/i/-/news/rss/newsonl
> in
> e_uk_edition/front_page/rss.xml";
> </cfscript>

--
CFAJAX docs and other useful articles:
http://www.bifrost.com.au/blog/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250445
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to