def copyNode(self, extended):
        """Do a copy of the node. """
        ret = libxml2mod.xmlCopyNode(self._o, extended)
        if ret is None:raise treeError('xmlCopyNode() failed')
        __tmp = xmlNode(_obj=ret)
        return __tmp
Do a copy of the node.