AddSchema()
XmlSchemaValidator::AddSchema(const SharedPtr<XmlSchema>&) method
Adds an XML Schema Definition Language (XSD) schema to the set of schemas used for validation.
void System::Xml::Schema::XmlSchemaValidator::AddSchema(const SharedPtr<XmlSchema> &schema)
Arguments
| Parameter | Type | Description |
|---|---|---|
| schema | const SharedPtr<XmlSchema>& | An XmlSchema object to add to the set of schemas used for validation. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentNullException | The XmlSchema parameter specified is nullptr. |
| XmlSchemaValidationException | The target namespace of the XmlSchema parameter matches that of any element or attribute already encountered by the XmlSchemaValidator object. |
| XmlSchemaException | The XmlSchema parameter is invalid. |
See Also
- Typedef SharedPtr
- Class XmlSchema
- Class XmlSchemaValidator
- Namespace System::Xml::Schema
- Library Aspose.Slides