Executing XPath functions
For those of you who use XPath functions, we will be running a simple XPath function in this walk-through. We want to know how many records are in our sample XML file. To get this information, we can run the count(//book)
XPath function. We will also need a variable to assign the results of our function. All the results that are returned from an XPath function are saved as a string. In this walk-through, you will learn how easy it is to run XPath functions using Automation Anywhere.
Let's start this walk-through by executing the following steps:
- To save the results of our XPath function, create a
String
type variable calledsBookCount
. - Add a Step action on line 38, ensuring it is aligned with the previous Step action on line 34.
- Set the Title property of this Step action on line 38 to
Execute XPath Function
.Your development interface should look like this:
- Click on Save.
- To execute...