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.

Parameters

General

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

Error Causes

On Error

Example

NOTE: 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" />