end_element Method
Writes the closing tag of an open XML element.
Syntax
def end_element() -> None: ...
Remarks
Writes the closing tag of the XML element most recently opened using start_element.
If no elements are opened, the call fails with an error