System::Xml::XPath::XPathNavigator::CheckValidity método

XPathNavigator::CheckValidity method

Verifica que los datos XML en el XPathNavigator cumplan con el esquema del lenguaje de definición de Schema XML (XSD) proporcionado.

virtual bool System::Xml::XPath::XPathNavigator::CheckValidity(SharedPtr<System::Xml::Schema::XmlSchemaSet> schemas, System::Xml::Schema::ValidationEventHandler validationEventHandler)
ParámetroTipoDescripción
schemasSharedPtr<System::Xml::Schema::XmlSchemaSet>El XmlSchemaSet que contiene los esquemas utilizados para validar los datos XML contenidos en el XPathNavigator.
validationEventHandlerSystem::Xml::Schema::ValidationEventHandlerEl ValidationEventHandler que recibe información sobre advertencias y errores de validación de esquemas.

ReturnValue

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

Ver también