code: def setTreeDoc(self, tree):
          
          if tree is None: tree__o = None
          else: tree__o = tree._o
          libxml2mod.xmlSetTreeDoc(tree__o, self._o)
docs: update all nodes under the tree to point to the right
             document