[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: MSXML DOM Special Chars Less Than 32


x02 xml
> The interoperability is partly due to the fact that the content
> consists of Unicode characters, which have widely agreed on
> semantics as documented in Unicode and ISO 10646.  However, the
> C0 controls do *not* have such widely agreed on semantics (what
> do ETX and EOD mean to you today?).  And in general binary data
> is less interoperable than textual data.  Thus it has no place
> in XML.

We often use XML to transport information whose semantics we do not
understand.

<a>&#x02;&#x02;</a>
may well be gibberish, but so might
<a>oaaosiuc</a>

Both might mean something to somebody. It's not my job to judge; I'm only
the messenger.

>
> If you need to interchange binary data (and we all do) that's fine,
> but don't claim doing so is interoperable and don't try to dress
> it up in XML clothes unless you're willing to base64 it or otherwise
> clearly mark it as an opaque blob.

For occasional C0 characters appearing in the middle of printable text, the
XML character reference mechanism seems to be a good way of doing just that.

> Wouldn't it be about the
> same amount of work, and a lot cleaner, just to throw this
> stuff into base64?

If C0 characters only occur in 0.01% of the character strings that you
actually transmit, then base64 encoding is a heavy price to pay.

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s...
>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.