WriteEndElement Method
WriteEndElement is a low-level method that writes the ending tag for the current XML element.
This method has the following syntax:
integer = XMLDocument.WriteEndElement()
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in
Error Codes.