----------------------------------------------------------------------------- Get true if file saves successfully to string. -----------------------------------------------------------------------------
| 253 | // Get true if file saves successfully to string. |
| 254 | // ----------------------------------------------------------------------------- |
| 255 | bool SimXMLDocument::saveToString(String& str) |
| 256 | { |
| 257 | tinyxml2::XMLPrinter printer; |
| 258 | bool ret = m_qDocument->Accept( &printer ); |
| 259 | if (ret) |
| 260 | str = printer.CStr(); |
| 261 | return ret; |
| 262 | } |
| 263 | |
| 264 | DefineEngineMethod( SimXMLDocument, saveFile, bool, ( const char* fileName ),, |
| 265 | "@brief Save document to the given file name.\n\n" |