SYNOPSISxmlNode xmlTreeSetRootElement(xmlDoc doc, xmlNode element)
Parameters:
doc
- the xmlDoc
to set the root element ofelement
- the element to set as the root of doc
Returns:
DESCRIPTIONxmlTreeSetRootElement()
sets the root element of doc
to
element
. If there was already a root element, it is removed
and returned.
EXAMPLE<$ret = (xmlTreeSetRootElement($doc, $node))>
SEE ALSOxmlTreeAddChild
,
xmlTreeAddChildList
,
xmlTreeAddNextSibling
,
xmlTreeAddPrevSibling
,
xmlTreeAddSibling