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/newsonlin e_uk_edition/front_page/rss.xml"; </cfscript> -----Original Message----- From: Snake [mailto:[EMAIL PROTECTED] Sent: 21 August 2006 10:57 To: CF-Talk Subject: RE: Parsing an XML Feed Both those questions were already answered in the previous post. >Where is the comment in the feed The feed has a comment before the XML declaration >what do I need to parse out You can parse out the comment lines and use what's left as XML -----Original Message----- From: Ian Vaughan [mailto:[EMAIL PROTECTED] Sent: 21 August 2006 10:41 To: CF-Talk Subject: RE: Parsing an XML Feed Where is the comment in the feed, what do I need to parse out? -----Original Message----- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: 21 August 2006 10:19 To: CF-Talk Subject: Re: Parsing an XML Feed The feed has a comment before the XML declaration, so it's not valid XML. You can parse out the comment lines and use what's left as XML. On 8/21/06, Ian Vaughan <[EMAIL PROTECTED]> wrote: > When trying to display an RSS feed I am getting the following error > > An error occured while Parsing an XML document. > Content is not allowed in prolog. > > I am using CFMX 7 enterprise, any ideas on what is causing this error? > > ------------code------------- > <cfscript> > URLToPull = "http://www.easycfm.com/syndication/mostviewed.cfm"; > </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:250439 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

