## XmlDocument::Load(SharedPtr\<IO::Stream\>) method


Loads the XML document from the specified stream.

```cpp
virtual void System::Xml::XmlDocument::Load(SharedPtr<IO::Stream> inStream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| inStream | SharedPtr\<IO::Stream\> | The stream containing the XML document to load. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlDocument::Load(SharedPtr\<IO::TextReader\>) method


Loads the XML document from the specified TextReader.

```cpp
virtual void System::Xml::XmlDocument::Load(SharedPtr<IO::TextReader> txtReader)
```


| Parameter | Type | Description |
| --- | --- | --- |
| txtReader | SharedPtr\<IO::TextReader\> | The TextReader used to feed the XML data into the document. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TextReader](../../../system.io/textreader/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlDocument::Load(SharedPtr\<XmlReader\>) method


Loads the XML document from the specified [XmlReader](../../xmlreader/).

```cpp
virtual void System::Xml::XmlDocument::Load(SharedPtr<XmlReader> reader)
```


| Parameter | Type | Description |
| --- | --- | --- |
| reader | SharedPtr\<XmlReader\> | The [XmlReader](../../xmlreader/) used to feed the XML data into the document. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlReader](../../xmlreader/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlDocument::Load(String) method


Loads the XML document from the specified URL.

```cpp
virtual void System::Xml::XmlDocument::Load(String filename)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filename | String | URL for the file containing the XML document to load. The URL can be either a local file or an HTTP URL (a [Web](../../../system.web/) address). |

## See Also

* Class [String](../../../system/string/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
