To those that suggested that there was leading whitespace, you were
correct.

I cant believe I missed that =\

Slapping a simple trim() function around the cfhttp content did the
trick.

Thanks all,

-chris.alvarado
[ application developer ]
4 Guys Interactive, Inc.
http://www.4guys.com
phone: 281.807.4344 x1716
fax: 281.807.4384

"We create websites that make you a hero."



> -----Original Message-----
> From: Chris Alvarado 
> Sent: Friday, June 13, 2003 11:42 AM
> To: CF-Community
> Subject: XML Question
> 
> 
> I sent this to the CF-Talk list but have not heard anything back so I
> thought I would post it here as well and see what I can see...=)
>  
> I am submitting an HTTP Get command to grab some XML data.
> 
> the following data is returned (very simple).
> 
> <?xml version="1.0" encoding="iso-8859-1" ?> 
> 
> <!DOCTYPE hgi (View Source for full doctype...)> 
> 
> <hgi>
> 
>     <distributor id="1002">
> 
>         <active>FALSE</active> 
> 
>     </distributor>
> 
> </hgi>
> 
> However, when i try to run xmlParse(cfhttp.filecontent)
> 
> I get the following error.
> 
> "XML declaration may only begin entities."
> 
> any ideas?
> 
> Thanks for any and all help,
> 
>  
> 
> -chris.alvarado 
> [ application developer ] 
> 4 Guys Interactive, Inc. 
> http://www.4guys.com <http://www.4guys.com/>  
> phone: 281.807.4344 x1716 
> fax: 281.807.4384 
> 
> "We create websites that make you a hero." 
> 
>  
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
                                

Reply via email to