code: def docCopyNode(self, doc, extended):
          
          if doc is None: doc__o = None
          else: doc__o = doc._o
          ret = libxml2mod.xmlDocCopyNode(self._o, doc__o, extended)
          if ret is None:raise treeError('xmlDocCopyNode() failed')
          __tmp = xmlNode(_obj=ret)
          return __tmp
docs: Do a copy of the node to a given document.