Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: WriteString() Problem [Thread Next] Re: WriteString() ProblemTo: 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
