System.Xml.XPath.XPathNavigator.CheckValidity Method

Verifies that the XML data in the System.Xml.XPath.XPathNavigator conforms to the XML Schema definition language (XSD) schema provided.

Syntax

public virtual bool CheckValidity (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.ValidationEventHandler validationEventHandler)

Parameters

schemas
The System.Xml.Schema.XmlSchemaSet containing the schemas used to validate the XML data contained in the System.Xml.XPath.XPathNavigator.
validationEventHandler
The System.Xml.Schema.ValidationEventHandler that receives information about schema validation warnings and errors.

Returns

true if no schema validation errors occurred; otherwise, false.

Remarks

Requirements

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