August 27, 2003

Effective in-memory document validation

Am I right that it's impossible to validate in-memory XmlDocument without serializing it to string and reparsing? XmlValidatingReader requires instance of XmlTextReader and what's worse it uses its internal properties, not exposed as XmlTextReader public API, so that won't work even if one would provide fake instance of XmlTextReader, which ...