Output XML File Action

Description

Outputs the in-memory representation of the XML session, for example, to a file or variable before ending the XML session. Using this action does not change the XML or end the session, thus allowing subsequent XML steps to continue using the session.

Declaration

<AMXMLOUTPUT OUTPUTTYPE="text [options]" XMLFILETYPE="text [options]" XMLDESTINATION="text" OVERWRITEFILE="text [options]" />

Example

<AMXMLOUTPUT OUTPUTTYPE="File" XMLFILETYPE="Original" />
Note : Outputing the changes into samefile

<AMXMLOUTPUT OUTPUTTYPE="Variable" RESULTVARIABLE="OutputXML" />

(Puts the XML document data into a variable.)

General Tab Parameters

Output to: Specifies where to store the XML document after you have modified it using different XML actions.

  • File--Use this option if you want to store it in new file or an original file.

  • Variable--Use this option if you want to store XML data into Automated Workflow variable.

Text [Options], optional default "File"
MARKUP: OUTPUTTYPE="Variable"

Save XML document to: Specifies the file you want to save the XML document into--either new or original. This option only appears if you choose File for Output to.

  • New File - Stores the current XML document into new file

  • Original File - During Start XML Session if new file is created or existing file is used than this option will use that file to store the modified XML document.

Text [Options], optional default "New"
MARKUP: XMLFILETYPE="Original"

Output XML file: Specifies the path and file name of the new XML file. This option only appears if you choose File for Output to.

Text, Required
MARKUP: FILE="c:\foldername\file.XML"

Overwrite if file exists: If set to Yes (selected), specifies that if the file already exists, it will be overwritten with the new document. If set to No (cleared), the step fails if the file already exists. This option only appears if you choose File for Output To.

Yes/No, Optional - Default "NO"
MARKUP: OVERWRITEFILE="YES"

Session name: Specifies the session name to identify the in-memory XML document to use in subsequent XML steps. This allows several in-memory XML documents to be active simultaneously.

Text, Optional - Default "XMLSession1"
MARKUP: SESSIONNAME="FirstXMLSession"

See Also

Merge XML Files Action, Sign XML File Action