CMarkup Close Method

bool CMarkup::Close();

CMarkup Developer License

Close is only in CMarkup Developer and the free XML editor  FOAL C++ scripting.

Call Close to close the file that was opened for read or write mode. See the Open method. Open and Close are only used for CMarkup file modes: C++ XML reader and C++ XML writer.

bool bSuccess = xml.Close();

It returns true if the file is successfully closed, or false if the file was not open or there was an error closing it. The result string can be retrieved with GetResult.

If a CMarkup object is in file mode and it goes out of scope or is deleted then the Close method is called from the destructor.

After Close is called, the content of the in-memory partial document buffer is cleared and the CMarkup object can be used in regular mode (or a file mode if Open is called again).