Validate()
Contents
[
Hide
]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
| Parameter | Type | Description |
|---|---|---|
| validationEventHandler | Schema::ValidationEventHandler | The Schema::ValidationEventHandler object that receives information about schema validation warnings and errors. |
Exceptions
| Exception | Description |
|---|---|
| XmlSchemaValidationException | A schema validation event occurred and no Schema::ValidationEventHandler object was specified. |
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
| Parameter | Type | Description |
|---|---|---|
| validationEventHandler | Schema::ValidationEventHandler | The Schema::ValidationEventHandler object that receives information about schema validation warnings and errors. |
| nodeToValidate | const SharedPtr<XmlNode>& | The XmlNode object created from an XmlDocument to validate. |
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
- Typedef ValidationEventHandler
- Typedef SharedPtr
- Class XmlDocument
- Class XmlNode
- Namespace System::Xml
- Library Aspose.Slides