XML package

Extensible Markup Language (XML) is a markup language designed to store and transport data. Use the actions in the XML package to automate the processing of XML data generated from web services and cloud computing applications.

An XML document is structured as an ordered and labeled tree. Each node of the tree is an XML element and is written with an opening and closing tag. In the following example, custname and custid are nodes:

<customer>
<custname>XYZ Corp</custname>
<custid>A001</custid>
</customer>

XPath is a query language that uses path expressions to select nodes or node-sets in an XML document. XPath includes built-in functions for manipulation of string, numeric, Boolean, date and time, and so on.

Before you start

Perform the following actions within the XML package.

  1. Start the XML session using the Start XML Session action. Use this session name for all corresponding actions.
  2. Use the different actions available in the XML package to automate XML-related tasks.
  3. Save the session using the Save XML Session action to assign the data to a file or String-type variable.
  4. End the session using the End XML Session action to complete a task.

Actions in the XML package

The XML includes the following actions:

Action Description
Delete node See Delete node action in XML.
End session See End session action in XML.
Execute XPath function See Execute XPath function action in XML.
Get multiple nodes See Get multiple nodes action in XML.
Get single node See Get single node action in XML.
Insert node See Using Insert node action.
Save session data See Save session data action in XML.
Start session See Start session action in XML.
Update node See Update node action in XML.
Validate XML document See Validate XML document action in XML.