Language Reference Guide : System Classes : XMLDocument Class : WriteEndDocument Method
 
Share this page          
WriteEndDocument Method
WriteEndDocument is a low-level method that closes the file previously opened by WriteStartDocument() after writing ending tags for all remaining open XML elements, if any.
This method has the following syntax:
integer = XMLDocument.WriteEndDocument()
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.