Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: WriteString() Problem

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/5/2007 1:49:00 PM

Anthony Jones wrote:

> I'm not sure I understand why the documentation says that.  Most control
> characters are illegal in XML, why would you want to include them?

While those characters, even when escaped, are not allowed in XML 1.0, 
the original XmlTextReader/XmlTextWriter implementation in .NET 1.x 
allowed them when escaped as a numerical character reference. With .NET 
2.0 you can set CheckCharacters as needed to true or false on 
XmlReaderSettings/XmlWriterSettings and create XmlReaders/XmlWriters as 
needed, depending on your needs. By default XmlReader.Create and 
XmlWriter.Create with no settings passed do check character references 
respectively characters and do not allow those characters anymore.

-- 

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


transparent
Print
Mail
Like It
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