AbortWrite Method
AbortWrite is a low-level method that aborts writing to the file previously opened by WriteStartDocument().
This statement has the following syntax:
integer = XMLDocument.AbortWrite()
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.