Save a configuration
You can save configuration into a string with the SaveToXMLString method. With this method you can specify whether result string is formatted with tabs or not:
string savedConfiguration; int isFormatted = 1; (m_objCharGen as IMLXMLPersist).SaveToXMLString(out savedConfiguration, isFormatted);
To save the configuration into a file you should use the SaveToXMLFile method. You can specify whether the file is saved as Unicode or not:
string outputFile = @"c:\myConfig.xml"; int isUnicode = 1; (m_objCharGen as IMLXMLPersist).SaveToXMLFile(outputFile, isUnicode);
Load a configuration
You can load configuration from a local file or from a string with the LoadFromXML method. The _nlength parameter in this method is not used.
string outputFile = @"c:\myConfig.xml"; int length = 0; (m_objCharGen as IMLXMLPersist).LoadFromXML(outputFile, length);