GetXElementNodeText

When to use the GetXElementNodeText

Use this activity to get the text of the specified Element Node from the input XML Document

Figure 1


1

After obtaining the  element count , getting the node along with the value, let us see proceed  to get the text of the required 6th element.

(1)Drag and drop a GetXElementNodeText activity from the XML package and assign it to the workflow. (2) Specify the output of the GetXElementNode activity as input in the GetXElementNodeText activity. (xElementNode)(3)Specify a string variable in the output property field.(Text) to get the text  value of the of the specified 6th element.

Figure 2

2

Next,(1)Drag and drop a WriteLog activity and assign it to the GetXElementNodeText activity. (2) Provide the input string with the appropriate Syntax - “Preferred text” + output variable  to get the value of the 6th element. (3) Specify the Log level.

Figure 3

3

In the above workflow the Input String syntax in the WriteLog is as follows :

Figure 4

4

Execute the workflow. The output will display the selected 6th  position’s  Text Element as displayed in the following image.

Figure 5

5

Technical Reference

Figure 6

6

 

 

5.1.1