Writes out an end tag for the element.
Parameters:
elem
Exceptions:
IOException
Diagram: AbstractWriter