I think it might be a white space problem. Ben Nadel wrote a helpful blog about 
it sometime ago 
http://www.bennadel.com/blog/1206-Content-Is-Not-Allowed-In-Prolog-ColdFusion-XML-And-The-Byte-Order-Mark-BOM-.htm

Matt

Sent from my iPhone

On 4 Dec 2012, at 21:45, fun and learning <funandlrnn...@gmail.com> wrote:

> 
> Hi All -
> 
> I am trying to parse a wordpress feed in Coldfusion. Below is the code I have.
> 
> <cfhttp url="http://test.com/feed/"; result="objGet"></cfhttp>
> 
> The result dump works fine
> <cfdump var="#objGet#">
> 
> The problem is when parsing the XML.
> <cfset xmlResult = XmlParse(objGet.FileContent) />
> 
> I get this error An error occured while Parsing an XML document. The entity 
> name must immediately follow the '&' in the entity reference. I tried using 
> XMLFormat to escape special characters, but I get this error when I use 
> XMLFormat - An error occured while Parsing an XML document. Reference is not 
> allowed in prolog 
> 
> Any suggestions on how to fix this? 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353363
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to