| 289 | } |
| 290 | |
| 291 | void XMLExport::exportXML(String& str) |
| 292 | { |
| 293 | mXML = new SimXMLDocument(); |
| 294 | mXML->registerObject(); |
| 295 | |
| 296 | mXML->addHeader(); |
| 297 | |
| 298 | mXML->pushNewElement("ConsoleXML"); |
| 299 | |
| 300 | exportBaseTypes(); |
| 301 | exportEntryTypes(); |
| 302 | exportNamespaces(); |
| 303 | |
| 304 | mXML->popElement(); // TorqueConsole |
| 305 | |
| 306 | mXML->saveToString(str); |
| 307 | |
| 308 | // If you're having trouble with the generated XML, you can dump to a file and inspect |
| 309 | // mXML->saveFile("ConsoleExport.xml"); |
| 310 | |
| 311 | mXML->deleteObject(); |
| 312 | } |
| 313 | |
| 314 | }; // namespace Con |
| 315 |
no test coverage detected