Xmlvalidatingreader sample code
The latter builds up a schema object model (SOM) for the current node based on the XDR or XSD schema source code.
The schema builder class is actually the base class for more specialized XDR and XSD schema builders.
The following is the most commonly used constructor.
The programming interface of the Xml Validating Reader class does not explicitly provide for a single method good at validating the whole content of a document.
The class works on top of an XML reader—typically an instance of the Xml Text Reader class.