Xml validating reader

For more information about XML Schema, see the W3C XML Schema Part 1: Structures Recommendation and the XML Schema Part 2: Datatypes Recommendation, located at Validation of XML documents and XML fragments is enforced using the Xml Validating Reader class, which provides DTD, XML-Data Reduced (XDR), and XML Schema definition language (XSD) schema validation services by implementing the validity constraints defined by the W3C Recommendations.There are differences in how elements, with specified, are validated.Elements with white space content are considered valid by the Xml Validating Reader class.Elements with white space content are not considered valid by validating readers created using the Xml Reader Settings class.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 Xml Reader class is an abstract base class that provides non-cached, forward-only, read-only access.

Xml Validating Reader can take an Xml Text Reader as input.

This property can be changed and takes effect after the next Read call.

When Entity Handling is set to Expand Char Entities, attribute values are only partially normalized.

The Xml Validating Reader layers support over the Xml Text Reader, and also supports the ability to parse XML fragments with the Xml Parser Context class.

For more information about parsing XML fragments, see Reading XML Fragments with the Xml Validating Reader.

Leave a Reply