## XmlDocument::get_DocumentElement method


Restituisce l'elemento radice [XmlElement](../../xmlelement/) del documento.

```cpp
SharedPtr<XmlElement> System::Xml::XmlDocument::get_DocumentElement()
```


### ReturnValue

L'[XmlElement](../../xmlelement/) che rappresenta la radice dell'albero del documento XML. Se non esiste una radice, viene restituito **nullptr**.

## Vedi anche

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