Skip to main content

doc_get_root_element

Function doc_get_root_element 

Source
pub fn doc_get_root_element(doc: *mut _xmlDoc) -> *mut _xmlNode
Expand description

Get the root element of a document.

ยงUPSTREAM-PARITY

xmlNodePtr xmlDocGetRootElement(xmlDocPtr doc);

Returns the root element, or NULL if the document has no root element. Skips non-element nodes (like PIs, comments) at the document level.