pub fn doc_get_root_element(doc: *mut _xmlDoc) -> *mut _xmlNodeExpand 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.