XML Node to Dataset Action

Description

Creates a dataset of node values or node attribute values or unique Xpath of nodes.

Declaration

<AMXMLNODEITERATOR XPATH="text" RESULTDATASET="text" VARVALUETYPE="text [options]"/>

Example

<AMXMLNODEITERATOR XPATH="/BookStore/Books" RESULTDATASET="AllAuthors" VARVALUETYPE="AttributeValue" ATTRNAME="Country" />

<AMXMLNODEITERATOR XPATH="/BookStore/Books/Price" RESULTDATASET="Prices" VARVALUETYPE="XpathValue" />

General Tab Parameters

XPath expression: Specifies the Xpath expression to the particular node(s).

Text, Required
MARKUP: XPATH="/BookStore/Books"

Create the dataset of node values: Stores the node's text value or Xpath value or the node's attribute's value into a dataset.

Text, Required
MARKUP: RESULTDATASET="AllBooks"

Populate dataset with: Specifies the type of value you want to store in the dataset.

  • Node's text value--Use this option to set the variable to the text value of each node. This one is default.

  • Node's attribute's value--Use this option to set the variable to the value of an attribute. Also requires attributes name to be specify in the text box.

  • Node's unique Xpath--Use this option to set the variable to the absolute Xpath of each node.

Text [Options], optional - default "Text value"
MARKUP: VARVALUETYPE="AttributeValue"

Session name: Specifies the session name to run the XML file in subsequent XML steps. This allows several connections to be active simultaneously.

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

See Also

Create XML Node Action, Delete XML Node Action