Validate()
XmlDocument::Validate(Schema::ValidationEventHandler) method
Validates the XmlDocument against the XML Schema Definition Language (XSD) schemas contained in the XmlDocument::get_Schemas list.
void System::Xml::XmlDocument::Validate(Schema::ValidationEventHandler validationEventHandler)
Arguments
Exceptions
XmlDocument::Validate(Schema::ValidationEventHandler, const SharedPtr<XmlNode>&) method
Validates the XmlNode object specified against the XML Schema Definition Language (XSD) schemas in the XmlDocument::get_Schemas list.
void System::Xml::XmlDocument::Validate(Schema::ValidationEventHandler validationEventHandler, const SharedPtr<XmlNode> &nodeToValidate)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentException | The XmlNode object parameter was not created from an XmlDocument. |
| InvalidOperationException | The XmlNode object parameter is not an element, attribute, document fragment, or the root node. |
| XmlSchemaValidationException | A schema validation event occurred and no Schema::ValidationEventHandler object was specified. |
See Also