Open topic with navigation

# write_xml

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.

## Syntax

    write_xml( doc, outputFilename )

## Arguments

Argument | Description
--- | ---
`doc` | (LuaDocument) The document to be written to an XML file.
`outputFilename` | (string) The filename of the output XML file.

## Returns

Boolean. Returns `true` if the XML file was created successfully, and `false` otherwise.

## Example

    function handler(document)
       return write_xml(document, "some_folder/my_xml_file")
    end

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm