## XPathNavigator::CheckValidity method


Überprüft, ob die XML-Daten im [XPathNavigator](../) dem XML [Schema](../../../system.xml.schema/) Definitionssprache (XSD)-Schema entsprechen.

```cpp
virtual bool System::Xml::XPath::XPathNavigator::CheckValidity(SharedPtr<System::Xml::Schema::XmlSchemaSet> schemas, System::Xml::Schema::ValidationEventHandler validationEventHandler)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| schemas | SharedPtr\<System::Xml::Schema::XmlSchemaSet\> | Das XmlSchemaSet, das die zum Validieren der im [XPathNavigator](../) enthaltenen XML-Daten verwendeten Schemas enthält. |
| validationEventHandler | System::Xml::Schema::ValidationEventHandler | Der ValidationEventHandler, der Informationen über Warnungen und Fehler bei der Schemavalidierung empfängt. |

### ReturnValue

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

## Siehe auch

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchemaSet](../../../system.xml.schema/xmlschemaset/)
* Typedef [ValidationEventHandler](../../../system.xml.schema/validationeventhandler/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.Page for C++](../../../)
