The write_xml function writes a document to disk as an XML file. If you specify the name of an existing XML file, the document is appended to the file.
write_xml( doc, outputFilename )
| Argument | Description |
|---|---|
doc
|
(LuaDocument) The document to be written to an XML file. |
outputFilename
|
(string) The filename of the output XML file. |
Boolean. Returns true if the XML file was created successfully, and false otherwise.
function handler(document) return write_xml(document, "some_folder/my_xml_file") end
|
|