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

RE: MSXML DOM Special Chars Less Than 32

xml hex encoding
> From: Michael Brennan [mailto:Michael_Brennan@a...]


> Actually, MSXML is doing the right thing, here. XML 1.0 
> explicitly disallows
> such characters in content -- even if they are encoded.

I should clarify that last statement before someone else does it for me. As
someone else once said on this list, I need to learn to type slower or think
faster. :-)

You cannot include such characters in XML, even if you try to include them
via character references (e.g. &#1;).

You can either use application-specific tags to represent such characters
(e.g. <char code="1"/>), or you can encode your content using hex or base64.
The former approach is probably more advantageous if most of the content is
readable text with only some control characters. The latter is appropriate
where there is a high proportion of control characters, or in instances
where your content is not really text but is binary data.


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.
First Name
Last Name
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.