(self)
return self._root
Flush builder buffers and return toplevel document Element.
Flush builder buffers and return toplevel document Element.
Flush builder buffers and return toplevel document Element .
def close(self):
        """Flush builder buffers and return toplevel document Element."""
        assert len(self._elem) == 0, "missing end tags"
        assert self._root is not None, "missing toplevel element"
        return self._root
def close ( self ) : assert len ( self . _elem ) == 0 , "missing end tags" assert self . _root is not None , "missing toplevel element" return self . _root