> Secondly, forget that I typed cfsavecontent.  That was a 
> typo.  I meant cfcontent as was exampled in the live docs 
> link I included.  I am using cfxml to create the XML object, 
> and tostring to create a string representation of that object 
> to pass along to JavaScript.  
> According to Adobe UTF-8 is the ONLY encoding that tostring 
> will produce for xml documents. 

While that might have been a typo on your part, it wasn't on mine. I'm
suggesting that you use CFSAVECONTENT instead of CFXML, which will let you
set the XML declaration however you like, and will avoid any requirement to
use ToString, as the variable you create with CFSAVECONTENT will already be
a string instead of an XML document object.

> Also, I am a little confused on exactly how the <cfcontent 
> type="text/xml; charset=utf-16"> will work.  You see, I don't 
> want to encode the entire output of my page as utf-16-- JUST 
> the xml string.  It is my impression that using the cfcontent 
> tag will reset the ENTIRE page to use that encoding.  All I 
> want is a single coldfusion string variable to contain utf-16 
> encoded xml.

You can't encode part of an HTTP response as UTF-16, and the rest as
something else. That's unpossible. Even if you can get a browser to
recognize a multipart MIME HTTP response, you couldn't generate it with CF,
since response encoding is a characteristic of your page. If you want to
encode your XML as UTF-16, have your browser fetch it separately. In these
modern times, this is easy enough to do using AJAX.

>       <!--- Retarted Mozilla thinks white space chars are text nodes.
> --->

That is a fair interpretation of how whitespace should be handled. An XML
processor cannot simply ignore whitespace within elements, unless your
application tells it that the whitespace isn't significant:

http://xml.silmaril.ie/authors/whitespace/

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, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281201
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