Re: Illegal xml chars
I have an illegal character in my xml (0x08 or ) and when I tries to transform it using xslt, the parser (MS .NET) gives me an error(hexadecimal value 0x08, is an invalid character). I tried everything: using different encoding, wrapping my xml data in CDATA tags but nothing seems
If you are using .NET 2.0 or later then you can use  (a character reference) in your XML 1.0 documents parsed by an XmlReader with XmlReaderSettings.CheckCharacters set to false e.g. C#
XmlReaderSettings readerSettings = new XmlReaderSettings();
readerSettings.CheckCharacters = false;
using (XmlReader reader = XmlReader.Create(@"file.xml", readerSettings))
// now use that reader here e.g. to be on topic on the list
XPathDocument doc = new XPathDocument(reader);
Using the character literally however is not possible.
If you need more help on that then I suggest we move to the newsgroup microsoft.public.dotnet.xml as we are getting off-topic here on the XSL list.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format