docs: def node_copy(node, nodefactory=Node):
      """Make a deep copy of the node"""
      return nodefactory(node.tag, node.attrib.copy(), node.text,
                         [node_copy(n, nodefactory) for n in node])