## XmlSchema::Read(const SharedPtr\<IO::Stream\>\&, ValidationEventHandler) method


Legge uno XML [Schema](../../) dal flusso fornito.

```cpp
static SharedPtr<XmlSchema> System::Xml::Schema::XmlSchema::Read(const SharedPtr<IO::Stream> &stream, ValidationEventHandler validationEventHandler)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| stream | const SharedPtr\<IO::Stream\>\& | Il flusso di dati fornito. |
| validationEventHandler | ValidationEventHandler | Il gestore dell'evento di convalida che riceve informazioni sugli errori di sintassi dello XML [Schema](../../). |

### ReturnValue

L'oggetto [XmlSchema](../) che rappresenta lo XML [Schema](../../).

## Vedi anche

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchema](../)
* Class [Stream](../../../system.io/stream/)
* Typedef [ValidationEventHandler](../../validationeventhandler/)
* Class [XmlSchema](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.Page for C++](../../../)
## XmlSchema::Read(const SharedPtr\<IO::TextReader\>\&, ValidationEventHandler) method


Legge uno XML [Schema](../../) dal [IO::TextReader](../../../system.io/textreader/) fornito.

```cpp
static SharedPtr<XmlSchema> System::Xml::Schema::XmlSchema::Read(const SharedPtr<IO::TextReader> &reader, ValidationEventHandler validationEventHandler)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| reader | const SharedPtr\<IO::TextReader\>\& | Il [IO::TextReader](../../../system.io/textreader/) contenente lo XML [Schema](../../) da leggere. |
| validationEventHandler | ValidationEventHandler | Il gestore dell'evento di convalida che riceve informazioni sugli errori di sintassi del XML [Schema](../../). |

### ReturnValue

L'oggetto [XmlSchema](../) che rappresenta lo XML [Schema](../../).

## Vedi anche

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchema](../)
* Class [TextReader](../../../system.io/textreader/)
* Typedef [ValidationEventHandler](../../validationeventhandler/)
* Class [XmlSchema](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.Page for C++](../../../)
## XmlSchema::Read(const SharedPtr\<XmlReader\>\&, ValidationEventHandler) method


Legge uno XML [Schema](../../) dal [XmlReader](../../../system.xml/xmlreader/) fornito.

```cpp
static SharedPtr<XmlSchema> System::Xml::Schema::XmlSchema::Read(const SharedPtr<XmlReader> &reader, ValidationEventHandler validationEventHandler)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| reader | const SharedPtr\<XmlReader\>\& | Il [XmlReader](../../../system.xml/xmlreader/) contenente lo XML [Schema](../../) da leggere. |
| validationEventHandler | ValidationEventHandler | Il gestore dell'evento di convalida che riceve informazioni sugli errori di sintassi del XML [Schema](../../). |

### ReturnValue

L'oggetto [XmlSchema](../) che rappresenta lo XML [Schema](../../).

## Vedi anche

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchema](../)
* Class [XmlReader](../../../system.xml/xmlreader/)
* Typedef [ValidationEventHandler](../../validationeventhandler/)
* Class [XmlSchema](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.Page for C++](../../../)
