Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

XmlSchemaValidator Constructor

Definition

Namespace:
System.Xml.Schema
Assemblies:
netstandard.dll, System.Xml.ReaderWriter.dll
Assembly:
System.Xml.ReaderWriter.dll
Assembly:
System.Xml.dll
Assembly:
netstandard.dll
Source:
XmlSchemaValidator.cs
Source:
XmlSchemaValidator.cs
Source:
XmlSchemaValidator.cs
Source:
XmlSchemaValidator.cs
Source:
XmlSchemaValidator.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Initializes a new instance of the XmlSchemaValidator class.

public:
 XmlSchemaValidator(System::Xml::XmlNameTable ^ nameTable, System::Xml::Schema::XmlSchemaSet ^ schemas, System::Xml::IXmlNamespaceResolver ^ namespaceResolver, System::Xml::Schema::XmlSchemaValidationFlags validationFlags);
public XmlSchemaValidator(System.Xml.XmlNameTable nameTable, System.Xml.Schema.XmlSchemaSet schemas, System.Xml.IXmlNamespaceResolver namespaceResolver, System.Xml.Schema.XmlSchemaValidationFlags validationFlags);
new System.Xml.Schema.XmlSchemaValidator : System.Xml.XmlNameTable * System.Xml.Schema.XmlSchemaSet * System.Xml.IXmlNamespaceResolver * System.Xml.Schema.XmlSchemaValidationFlags -> System.Xml.Schema.XmlSchemaValidator
Public Sub New (nameTable As XmlNameTable, schemas As XmlSchemaSet, namespaceResolver As IXmlNamespaceResolver, validationFlags As XmlSchemaValidationFlags)

Parameters

nameTable
XmlNameTable

An XmlNameTable object containing element and attribute names as atomized strings.

schemas
XmlSchemaSet

An XmlSchemaSet object containing the XML Schema Definition Language (XSD) schemas used for validation.

namespaceResolver
IXmlNamespaceResolver

An IXmlNamespaceResolver object used for resolving namespaces encountered during validation.

validationFlags
XmlSchemaValidationFlags

An XmlSchemaValidationFlags value specifying schema validation options.

Exceptions

One or more of the parameters specified are null.

An error occurred while compiling schemas in the XmlSchemaSet parameter.

Examples

For an example of the XmlSchemaValidator constructor, see the XmlSchemaValidator class reference topic.

Remarks

The following are important notes to consider when using the XmlSchemaValidator constructor.

Important

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

Applies to

See also


Feedback

Was this page helpful?