ValidateEndElement()
Contents
[
Hide
]XmlSchemaValidator::ValidateEndElement(const SharedPtr<XmlSchemaInfo>&) method
Verifies if the text content of the element is valid according to its data type for elements with simple content, and verifies if the content of the current element is complete for elements with complex content.
SharedPtr<Object> System::Xml::Schema::XmlSchemaValidator::ValidateEndElement(const SharedPtr<XmlSchemaInfo> &schemaInfo)
Arguments
| Parameter | Type | Description |
|---|---|---|
| schemaInfo | const SharedPtr<XmlSchemaInfo>& | An XmlSchemaInfo object whose properties are set on successful validation of the element. This parameter can be nullptr. |
Return Value
The parsed, typed text value of the element if the element has simple content.
Exceptions
| Exception | Description |
|---|---|
| XmlSchemaValidationException | The element’s content is not valid. |
| InvalidOperationException | The XmlSchemaValidator::ValidateEndElement method was not called in the correct sequence. For example, if the XmlSchemaValidator::ValidateEndElement method is called after calling XmlSchemaValidator::SkipToEndElement. |
XmlSchemaValidator::ValidateEndElement(const SharedPtr<XmlSchemaInfo>&, const SharedPtr<Object>&) method
Verifies if the text content of the element specified is valid according to its data type.
SharedPtr<Object> System::Xml::Schema::XmlSchemaValidator::ValidateEndElement(const SharedPtr<XmlSchemaInfo> &schemaInfo, const SharedPtr<Object> &typedValue)
Arguments
| Parameter | Type | Description |
|---|---|---|
| schemaInfo | const SharedPtr<XmlSchemaInfo>& | An XmlSchemaInfo object whose properties are set on successful validation of the text content of the element. This parameter can be nullptr. |
| typedValue | const SharedPtr<Object>& | The typed text content of the element. |
Return Value
The parsed, typed simple content of the element.
Exceptions
| Exception | Description |
|---|---|
| XmlSchemaValidationException | The element’s text content is not valid. |
| InvalidOperationException | The XmlSchemaValidator::ValidateEndElement method was not called in the correct sequence (for example, if the XmlSchemaValidator::ValidateEndElement method is called after calling XmlSchemaValidator::SkipToEndElement), calls to the XmlSchemaValidator::ValidateText method have been previously made, or the element has complex content. |
| ArgumentNullException | The typed text content parameter cannot be nullptr. |
See Also
- Typedef SharedPtr
- Class Object
- Class XmlSchemaInfo
- Class XmlSchemaValidator
- Namespace System::Xml::Schema
- Library Aspose.Slides