def __init__(self, root=None): Element.__init__(self, 'document') if root is not None: self.append(root)
def __init__(self, content): Element.__init__(self, content.name, content.parent) self.__content = content