16. save-document

save-document(file_name, indented?)

Save the document being modified by the XED script to specified file. A relative filename is relative to the current working directory. Parameter indented, which defaults to true(), specifies whether the save file should be indented.

This command is mainly useful to debug complex XED scripts.

Examples:

save-document("c:\temp\debug.xml");

save-document("out.xml", (:indent:) false());