## XmlSchemaValidator::AddSchema method


Adds an XML [Schema](../../) Definition Language (XSD) schema to the set of schemas used for validation.

```cpp
void System::Xml::Schema::XmlSchemaValidator::AddSchema(const SharedPtr<XmlSchema> &schema)
```


| Parameter | Type | Description |
| --- | --- | --- |
| schema | const SharedPtr\<XmlSchema\>\& | An [XmlSchema](../../xmlschema/) object to add to the set of schemas used for validation. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchema](../../xmlschema/)
* Class [XmlSchemaValidator](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.PUB for C++](../../../)
