What version of CF are you using?  I think if you are using pre-CFMX7, 
including the <?xml ?> directive in there will produce an error.

-- Josh


----- Original Message ----- 
From: "Ben Nadel" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Friday, November 10, 2006 1:59 PM
Subject: RE: CFXML tag: Not well-formed xml output.


>I just tried a similar thing and it worked. Try removing the query
> values (#value_[0-9]#)... Just do the XML tag structure. See if it still
> errors out. If not, then it's probably a data issue. Try wrapping the
> query values in XmlFormat().
>
>
> ......................
> Ben Nadel
> Certified Advanced ColdFusion MX7 Developer
> www.bennadel.com
>
> Need ColdFusion Help?
> www.bennadel.com/ask-ben/
>
>
> -----Original Message-----
> From: Walter Conti [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 10, 2006 3:21 PM
> To: CF-Talk
> Subject: CFXML tag: Not well-formed xml output.
>
> A nudge in the right direction.
>
> The following code produces this error:
> The markup in the document following the root element must be
> well-formed.
>
> <cfquery name="getCaps" datasource="petitions" maxrows="10">
>   Select value_1, value_2, value_3
>     from myTable
>    order by value_1
> </cfquery>
>
> <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>
>
> Thank You
>
>
>
> 

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