XML - Dataset to XML

Declaration

<AMDATASETTOXML RESULTDATASET="text" RESULTVARIABLE="text" />

See Also

XML - Create Node | XML - Create Session | XML - Delete Node | XML - Edit Node | XML - End Session | XML - Evaluate Xpath | XML - Export | XML - Import | XML - Node to Dataset | XML - Read Node | XML - Save | XML - Sign | XML - Transform | XML - Validate | XML - Verify

Dataset to XML

Declaration

<AMDATASETTOXML RESULTDATASET="text" RESULTVARIABLE="text" />

See Also

Create XML Node | Dataset to XML | Delete XML Node | Edit XML Node | End XML Session | Evaluate Xpath Expression | Extract XML Fragment | Merge XML Files | Output XML | Read XML Node | Sign XML Document | Start XML Session | Transform XML | Validate XML File | Verify XML Document | XML Node to Dataset

Description

Allows an AutoMate dataset to be stored into XML text. The dataset must first be created in a previous step and must exist in the task in order for this action to work.

IMPORTANT: AutoMate's XML actions require a basic understanding of XML and related terms, such as XPath, DTD and XSLT.

Practical Usage

Used to get  the XML representation of a dataset.

Parameters

General Properties

Property

Type

Req'd

Default

Markup

Description

Dataset Name

Text

Yes

(Empty)

RESULTDATASET="theDataset"

 The name of the AutoMate 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 Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Description: Stores dataset "theDataset" into AutoMate variable "theVar" as XML

 

<AMDATASETTOXML RESULTDATASET="theDataset" RESULTVARIABLE="theVar" />

↑ Top of Page