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


Legge uno [Schema](../../) XML dallo stream 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 [Schema](../../) XML. |

### ReturnValue

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

## Vedi anche

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


Legge uno [Schema](../../) XML dallo [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\>\& | Lo [IO::TextReader](../../../system.io/textreader/) che contiene lo [Schema](../../) XML da leggere. |
| validationEventHandler | ValidationEventHandler | Il gestore dell'evento di convalida che riceve informazioni sugli errori di sintassi del [Schema](../../) XML. |

### ReturnValue

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

## Vedi anche

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


Legge uno [Schema](../../) XML dallo [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\>\& | Lo [XmlReader](../../../system.xml/xmlreader/) che contiene lo [Schema](../../) XML da leggere. |
| validationEventHandler | ValidationEventHandler | Il gestore dell'evento di convalida che riceve informazioni sugli errori di sintassi del [Schema](../../) XML. |

### ReturnValue

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

## Vedi anche

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