Xmlvalidatingreader is obsolete use xmlreader
We quickly run through the input Xml Text Reader, write the Infoset out to a Memory Stream and return a "fresh" Xml Text Reader and darn it if it doesn't work just fine.
The reader is advanced using any of the read methods and properties reflect the value of the current node.
This class implements Xml Reader and conforms to the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations.
Xml Text Reader provides the following functionality: Because the Xml Text Reader does not perform the extra checks required for data validation, it provides a fast well-formedness parser.
This whole validation ickiness deserved two posts, so I didn't mention it in the last Xml Validating Reader post. But, the I remember/noticed that the document was element Form Default="unqualified" meaning that only the This document should now validate, and it fact it does in my test applications.
The XML format that I'm parsing and validating isn't the savvyest of formats as it was created years ago before the XML Schema specification was complete. When the document is loaded directly from a test file it works fine.