> The following code produces this error:
> The markup in the document following the root element must be 
> well-formed.
> 
> ...
> 
> <cfxml variable="mydoc">
>    <?xml version="1.0" encoding="iso-8859-1"?>
>    <petitions>
>    <cfoutput query="getCaps">
>       <value_1>#value_1#</value_1>
>       <value_2>#value_2#</value_2>    
>       <value_3>#value_3#</value_3>
>    </cfoutput>
>    </petitions>
> </cfxml> 

Prior to CF 7, you can't include the XML declaration within CFXML.

> And to close this topic let me ask how to change the standard 
> XML declaration produced by CFXML from
> 
> <?xml version="1.0" encoding="UTF-8" ?> to <?xml 
> version="1.0" encoding="iso-8859-1"?>

I don't think you can. However, you could use CFSAVECONTENT instead of CFXML
to build a string containing your XML document, then use XMLParse to convert
it to an XML document object. But I would agree with Mr. Demirkapi - use
Unicode if at all possible.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
 
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore and Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:259994
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