Get Specified Value From XML: getXmlValue
The Get Specified Value From XML function retrieves a specified value from an XML file. This function is particularly useful for working with structured XML data and extracting values dynamically for automation workflows.
Example Usage: Let’s say you have an XML file that stores book details, and you need to extract the title of a book. Instead of manually searching through the XML, you can use Get Specified Value From XML function to fetch the data instantly.
Here’s an example XML snippet:

To retrieve the title (Midnight Rain), you need to provide the key “catalog.book.2.title”. The dot (.) notation helps navigate the XML hierarchy, and the indexing (1) is used when multiple entries exist at the same level.
Steps to Configure:
- Select Set a Variable Value from the Action dropdown.
- In the Element Key field, enter a variable name to store the extracted value (e.g., XMLValue).
- In the Parameter section, click Form and select Functions from the dropdown.
- Choose Get Specified Value From XML from the list of functions.
- Provide the following details:
- XML Data: Enter the XML content or reference a variable containing XML data using the syntax: ${Variable Name}
Note: If you are referencing XML data using a variable, ensure that the variable is already defined before using it in the function.
- Key: Define the key to fetch the desired XML value (e.g., catalog.book.2.title).
- Click Save.


- If the XML content is large, store it in a variable and reference it instead of entering raw data.
- Use dot (.) notation to navigate the XML structure.
- Use indexing when multiple elements exist at the same level.
Expected Outcome on execution:
- The specified value from the XML is extracted and stored in the variable defined in the Element Key.
- The extracted data can be used dynamically in subsequent automation steps using the syntax ${Variable Name}.