writeToFile

writeToFile(fileName: String);

The writeToFile method of the JadeXMLDocument class writes the XML representation of the document to the file specified in the fileName parameter.

You can control the format of the output by setting the JadeXMLDocument class formatting properties of the document object; for example, the endOfLine and indentString properties. In addition, you can set the file kind by calling the setFileEncoding method.