|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Exporting XML with characters less than #x20
"Brian Fitzpatrick" <bmf@o...> writes:
> How should characters less than #x20 (excluding #x9, #xA and #D) be handled
> in the output?
Another commonly-recommended approach is to Base64-encode the
character content, then tack on a sentinel attribute to the parent
element. Your consuming application then watches for this attribute
(you can limit the check to certain elements if you like) and decodes
any character content within such a marked element. It gets sticky
with mixed content, but we usually avoid that situation anyway.
There was even a brief discussion here about a "standard" attribute
("packed" or something?) that would indicate such an encoding, but
again I think it got dropped.
--
Steven E. Harris
Primus Knowledge Solutions, Inc.
http://www.primus.com
***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








