Export to an XML file

Datacap can export data to an XML file by using the actions in the ExportXML action library.

The ExportXML library includes actions that you can use to write data to an XML file. Some of the export actions are described in the following table.

Library Action Description
ExportXML xml_SetExportPath Specifies the path to the XML file storage location.
ExportXML xml_SetFileName Specifies the name for the XML file (do not include the .xml extension).
ExportXML xml_NewNode Creates a child node under the specified parent node, creating the parent node if necessary.
ExportXML xml_SetFileEncodingAsASCII Specifies whether to export files in ANSI format. If you do not add this action, files are exported in Unicode format by default.
ExportXML xml_SetNodeValue Sets the value of the specified node.
ExportXML xml_SaveFile Commits all unsaved nodes and saves the XML file to disk.

For a complete example, see Creating the ExportXML ruleset.