## XmlDocument::get_OwnerDocument method


Returns the [XmlDocument](../) to which the current node belongs.

```cpp
SharedPtr<XmlDocument> System::Xml::XmlDocument::get_OwnerDocument() override
```


### ReturnValue

For [XmlDocument](../) nodes ([XmlDocument::get_NodeType](../get_nodetype/) equals [XmlNodeType::Document](../../xmlnodetype/)), this method always returns **nullptr**.

## See Also

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