Count the Number of Elements in an XML Variable
Complete these steps to count the number of lines in an XML array variable:
- Create a variable to hold the value.
 - Create a LoadFromXML procedure by right clicking the form > Add Post-condition Procedure > Load Variable from XML Node.
 - Name the procedure, and in the Use variable field, select the variable from Step 1. Click OK.
 - The Load from XML window opens. In the Source data area, click From variable and select the variable that contains the XML.
 - In the Source node area and the Data Node field, specify the data node above the node you want to count. For example, root/Orders/.
 - In the Transfer method field, select Count of child elements.
 - In the Node Filter field, specify the node to count. For example, Items.
 - In the Result area, select the variable from Step 1. Click OK.

 - Verify the results and save your updated project.
 
