## XmlAttribute::get_OwnerElement method


Returns the [XmlElement](../../xmlelement/) to which the attribute belongs.

```cpp
virtual SharedPtr<XmlElement> System::Xml::XmlAttribute::get_OwnerElement()
```


### ReturnValue

The [XmlElement](../../xmlelement/) that the attribute belongs to or **nullptr** if this attribute is not part of an [XmlElement](../../xmlelement/).

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlElement](../../xmlelement/)
* Class [XmlAttribute](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
