You have problems with your xml document..
the correct document should be something like

<?xml version="1.0" encoding="iso-8859-1" ?>
<hgi>
 <distributor id="1002">
  <active>FALSE</active>
 </distributor>
</hgi>

You should be able to parse the above fine.

Joe Eugene


> -----Original Message-----
> From: Chris Alvarado [mailto:
> Sent: Friday, June 13, 2003 11:33 AM
> To: CF-Talk
> Subject: XMLParse() problem
>
>
> 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...)>
> - <http://www.homemadegourmet.com:81/ca/diststat.xml?DIST=1002#>
> <hgi>
> - <http://www.homemadegourmet.com:81/ca/diststat.xml?DIST=1002#>
> <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=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

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

Reply via email to