System.Xml.Schema.XmlSchemaValidator Class

Represents an XML Schema Definition Language (XSD) Schema validation engine. The System.Xml.Schema.XmlSchemaValidator class cannot be inherited.

See Also: XmlSchemaValidator Members

Syntax

public sealed class XmlSchemaValidator

Remarks

The System.Xml.Schema.XmlSchemaValidator class provides an efficient, high-performance mechanism to validate XML data against XML schemas in a push-based manner. For example, the System.Xml.Schema.XmlSchemaValidator class allows you to validate an XML infoset in-place without having to serialize it as an XML document and then reparse the document using a validating XML reader. The System.Xml.Schema.XmlSchemaValidator class can also be used to build validation engines over custom XML data sources or as a way to build a validating XML writer.

For more information about the System.Xml.Schema.XmlSchemaValidator class, see the XmlSchemaValidator Push-Based Validation topic.

Note:

The XmlSchemaValidationFlags.ProcessInlineSchema and XmlSchemaValidationFlags.ProcessSchemaLocation validation flags of an System.Xml.Schema.XmlSchemaValidator object are not set be default. Additionally, the XmlSchemaValidator.XmlResolver property of an System.Xml.Schema.XmlSchemaValidator object is null by default. As a result, external schemas referenced in include, imports, or redefine elements are not resolved by default.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0