The Pragmatic Programmer, 20th Anniversary Edition —revised, updated, and available now! This class is used in conjunction with the XmlTextReader class and provides the same access to the document contents. The properties and methods of these two classes are essentially identical. The differences between them lie in two properties of the XmlValidatingReader class that are related to validation. The ValidationType property specifies the type of validation to be performed. The possible settings for this property are the ValidationType constants described in Table
C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari
XmlValidatingReader is obsolete! – Emil's Lost & Found Archive
The XmlValidatingReader class is obsolete in. NET Framework 2. For more information, see the Remarks section of the XmlReader reference page. If no event handler is provided, an XmlException is thrown on the first validation error Severity is equal to XmlSeverityType. If an element reports a validation error, the rest of the content model for that element is not validated, however, its children are validated. The reader only reports the first error for a given element.
XmlValidatingReader is obsolete!
This class is obsolete. Starting with the. NET Framework 2. XmlValidatingReader implements the XmlReader class and provides support for data validation. Use the Schemas property to have the reader validate by using schema files that are cached in an XmlSchemaCollection.