## XmlNode::get_OwnerDocument method


Returns the [XmlDocument](../../xmldocument/) to which this node belongs.

```cpp
virtual SharedPtr<XmlDocument> System::Xml::XmlNode::get_OwnerDocument()
```


### ReturnValue

The [XmlDocument](../../xmldocument/) to which this node belongs. If the node is an [XmlDocument](../../xmldocument/) (NodeType equals [XmlNodeType::Document](../../xmlnodetype/)), this method returns **nullptr**.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlDocument](../../xmldocument/)
* Class [XmlNode](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
