SYNOPSISxmlNode xmlTreeGetRootElement(xmlDoc doc)
Parameters:
doc - the document you want to get the root element from
Returns:
doc
DESCRIPTIONxmlTreeGetRootElement() gets the root element from the XML
document doc. This is the proper way to get the root element
(as opposed to xmlTreeGetFirstChild() on the doc), as described
in the xmlDoc vs Root Element (here) section.
EXAMPLE<$root = (xmlTreeGetRootElement($doc))>
SEE ALSOxmlTreeGetDoc,
xmlTreeGetChildren,
xmlTreeGetFirstChild,
xmlTreeGetNext,
xmlTreeGetPrevious,
xmlTreeGetParent