Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


WriteString() Problem

From: Tom Delany <stellarguy@----------.------>
To: NULL
Date: 9/4/2007 12:58:00 PM

According to the Microsoft documentation, the .NET class 
System.Xml.XmlWriter.WriteString() does the following:

"Character values in the range 0x-0x1F (excluding white space characters 
0x9, 0xA, and 0xD) are replaced with numeric character entities (&#0; 
through &#0x1F)."

However, when we call WriteString() in an application we have written, we 
are seeing the following exception being thrown:

System.ArgumentException: '', hexadecimal value 0x12, is an invalid 
character.
   at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* 
pDst, Boolean entitize)
   at System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, 
Char* pSrcEnd)
   at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
   at System.Xml.XmlUtf8RawTextWriterIndent.WriteString(String text)
   at System.Xml.XmlWellFormedWriter.WriteString(String text)

Anyone ever seen anything like this?  Any idea what I am doing wrong?

Tom Delany



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