About XML Variables
- Last UpdatedSep 12, 2025
- 2 minute read
AVEVA Work Tasks uses XML variables to provide data inputs to workflows. XML variables can be configured in the Start activity through the XMLVariables property.
Different Types of XML Variables:
The following table lists different XML variables:
|
XML variable |
Description |
|---|---|
|
XML Document |
Using 'XML Document' variable, the required items can be fetched. |
|
XML Iterator |
'XML Iterator' variable allows you to define variables for repeating XML elements and attributes. |
|
SP InfoPath Form |
Not applicable. |
|
XML List |
Using 'XML List' variable, the data from any list can be fetched. |
|
XML List Iterator |
'XML List Iterator' variable is used to iterate through the list items (parent items) of a list and helps to retrieve or update data from a workflow. |
|
SP List/DocLibrary |
Not applicable. |
|
XML SAPTable |
Not applicable. |
|
XMLForms Data Grid |
'XML Forms Data Grid' variable is used to read or modify the selections of a Data Grid control used in Forms or Lists |
The XML Variable Interface provides the following functionality:
-
Defining XML schema for the XML Variable either by specifying the complete schema or loading an XML document or InfoPath form which is the source of the schema
-
Defining XSL transforms for the defined variable
-
Defining variables of type XML Document to retrieve data from XML files
-
Defining variables of type SP List/DocLibrary to create variables that map to Microsoft SharePoint libraries or lists
-
Defining variables of type SP InfoPath Form to create variables that map to InfoPath forms within a Microsoft SharePoint library
-
Defining variables of type XML Iterator to retrieve data within repeating nodes within an XML schema. The XML Iterator represents a collection of XML Nodes at some level in the XML variable schema. It allows you to perform actions on XML nodes such as looping through XMLnodes and getting the value of a specific node at any location.
-
Defining variables of type XML Forms Data Grid to retrieve or modify selections of Data Grid Control used within Forms or Lists which maps with the Grid Configuration for the selected XML node of the Form
Note:
- The special characters such as ! = | ~ @ # $ % ^ & * ( ) + ` - { } : " < > ? [ ] ; ' , . / and space are not supported for XML Variable Name.
- Support for Special Characters in XML node Names of XML Variables: Special characters such as, < > { } * ? [ ] ( ) - _ , = | ; ` +, and % are allowed while naming XML node of XML Variables. XMLVariable will not support XML node names with special characters, such as \ ~ ! ' : " # ` & . @ ^ and $.