Question: XMLTools / file formatting

Question regarding output formatting of xml files.

The WriteFile command writes the xmldocument / xmltree out to a file completly, and closes the file. The backdraw is that it isn't formatted nicely.

The PrintToFile command writes out nicely formatted, but the file isn't closed. And the XMLProcessingInstruction is also missing.

If I use Print(xmltree) before the writefile command, I get an error (not a xmltree anymore).

So how do I get nicely formatted XML files?

Please Wait...