int ModelicaXML::serializeXMLDocumentToFile(mstring xmlFileName) { // fix the file XMLFormatTarget *myFormatTarget = new LocalFileFormatTarget(X(xmlFileName.c_str())); theOutputDesc->setByteStream(myFormatTarget); // serialize a DOMNode to the local file " domSerializer->write(pModelicaXMLDoc, theOutputDesc); myFormatTarget->flush(); delete myFormatTarget; return 0; }
ParseError(const mstring& msg) : std::exception(msg.c_str()) {}