Under the Hood of the Validation Process

Before going any further with the details of DTD, XDR, and XSD validation, let’s review what happens under the hood of the validation process and how the XmlValidatingReader class really operates.

As mentioned, a validating reader works on top of a less-specialized reader, typically an XML text reader. You initialize the validating reader simply by passing a reference to this object. Upon initialization, the validating reader copies a few settings from the underlying reader. In particular, the properties BaseURI, Normalization, and WhiteSpaceHandling get the same values as the underlying reader. During the initialization step, an internal validator object is created to manage the schema information on ...

Get Applied XML Programming for Microsoft® .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.