Writing data

There are several ways available to write the contents of the data model to an XML file:
  • Call the method writeXML , specifying the filename:
    myEngine.writeXML("output.xml");
    
  • Call the method writeXML to write XML data to an output stream.
  • Call the method writeDOM to write data directly to a DOM tree.