XML - Save |
<AMXMLOUTPUT OUTPUTTYPE="text [options]" XMLFILETYPE="text [options]" XMLDESTINATION="text" OVERWRITEFILE="text [options]" /> |
Description: Saves 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 end the session, thus allowing subsequent XML steps to continue using the session.
IMPORTANT: Use of XML activities require a basic interpretation of XML schema and general knowledge of XML related terms, such as Nodes, XPath, DTD and XSLT. |
Outputs XML data currently saved onto a document or variable.
Session
Property |
Type |
Required |
Default |
Markup |
Description |
Session |
Text |
No |
(Empty) |
SESSIONNAME="FirstXMLSession" |
The name of the session to save. |
Save
Property |
Type |
Required |
Default |
Markup |
Description |
Save to |
Text (options) |
Yes |
New |
|
Specifies where the XML file/data should be saved to. The available options are:
|
File |
Text |
Yes if XML is saved to new file |
(Empty) |
XMLDESTINATION="c:\temp\file.xml" |
The path and filename to save the XML data. This parameter is available only if the Save to parameter is set to New. |
Overwrite if file exists |
Yes/No |
Yes if XML is saved to new file |
No |
OVERWRITEFILE="YES" |
If set to YES, if an XML file with the same name exists in the destination, it will be overwritten. If set to NO, an error will occur as a result of matching XML files. This parameter is set to NO by default and is active only if the Save to parameter is set to New. |
Decode XML value |
Yes/No |
Yes if XML is saved to variable |
No |
DECODEXML="YES" |
If set to YES, reverses the transformation for all the encoding methods. If set to NO (default) no decoding will take place. Encoding XML allows colons in any position, which means that the name may still be invalid according to the W3C Namespaces in XML Recommendation. |
Populate variable with value |
Text |
Yes if XML is saved to variable |
(Empty) |
RESULTVARIABLE="XMLdata" |
The name of an existing variable in which to output the XML data. |
NOTE: The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder. |
Description: Output XML to variable.
<AMXMLOUTPUT OUTPUTTYPE="File"
XMLFILETYPE="Original" /> <AMXMLOUTPUT OUTPUTTYPE="Variable"
RESULTVARIABLE="OutputXML" /> |