Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML/UTF8 and special characters < 32

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 8/1/2005 8:07:00 PM

dblock wrote:


> I have a store that I don't control (MAPI) and generate XML in some
> schema. It encounters special characters (eg. 0x12). My question is:
> what should I do?
> 
> a) Parse every single string and strip special characters?
> b) Parse every single string and manually add CDATA whenever I see one
> of special characters?

The character with ASCII or Unicode 18 is not allowed in XML, whether 
you put it into a CDATA or not.
Thus if you have input data with such characters and want to convert 
that data to XML then you have to either strip such characters or encode 
them in a form that they are allowed in XML (for instance base64 
encoding). What you do depends on your needs, whether you need those 
characters in the XML data (only encoded then) or whether you can simply 
throw them away as the application consuming the XML does not need them.


-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent