CMarkup Save Method
bool CMarkup::Save( MCD_CSTR szFileName );
Call Save to write the document to file. For example:
CMarkup xml( "<msg>Hello World</msg>\r\n" ); xml.Save( "C:\\Temp\\hello.xml" );
It will overwrite the file if it exists and create it if it does not. It returns true if the file was successfully written. As explained for the Load and SetDoc methods, the document is written as it exists in the CMarkup object even if it was loaded from a string or file that was not well-formed XML.
If Save returns false, the error string can be retrieved with GetError. See also WriteTextFile.
