Closes the current element. tag is the element name. Returns the closed element.
xml.etree.ElementTree/TreeBuilder.end
TreeBuilder.end