XML - Dataset to XML
Declaration
<AMDATASETTOXML RESULTDATASET="text" RESULTVARIABLE="text" />
Description: Stores an existing dataset into XML data. The dataset must first be created in a previous XML - Node to dataset step in order for proper functionality.
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.
Practical Usage
Used to get the XML representation of a dataset.
General Parameters
Property |
Type |
Required |
Default |
Markup |
Description |
---|---|---|---|---|---|
Dataset |
Text |
Yes |
(Empty) |
RESULTDATASET="theDataset" |
The name of the dataset in which to store into XML text. |
Populate variable with XML value |
Text |
Yes |
(Empty) |
RESULTVARIABLE="varname" |
The name of an already existing variable in which to store the in memory XML values. |
Description tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.
Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)
On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)
Example
The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.
Description: Stores dataset "theDataset" into variable "theVar" as XML.
<AMDATASETTOXML RESULTDATASET="theDataset" RESULTVARIABLE="theVar" />