## XmlDocument::WriteContentTo method


Saves all the children of the [XmlDocument](../) node to the specified [XmlWriter](../../xmlwriter/).

```cpp
void System::Xml::XmlDocument::WriteContentTo(const SharedPtr<XmlWriter> &xw) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| xw | const SharedPtr\<XmlWriter\>\& | The [XmlWriter](../../xmlwriter/) to which you want to save. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../xmlwriter/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
