xmlSetTreeDoc is available since version 1.0.
Prototype:
null-returned xmlSetTreeDoc(number tree, number doc)
Parameters
tree
the top element node handle
Description:
Update all nodes under the tree to point to the right document.
Return value:
Returns null.