Articles → AUTOMATION ANYWHERE → Read XML using automation anywhere 10.5

Read XML using automation anywhere 10.5






XML file




<?xml version="1.0"?>
<Root>
	<Val>
    Test 1
  </Val>
	<Val>
    Test 2
  </Val>
</Root>



Read XML in automation anywhere















Start a XML session




Picture showing the XML commands in automation anywhere

Click to Enlarge



Picture showing a popup window of XML commands with Start XML session option selected

Click to Enlarge




Get data from multiple nodes




Picture showing a popup window of XML commands with Get Node(s) option selected

Click to Enlarge




Loop through the result set




Picture showing the Each Node In An XML Dataset command in the loops in automation anywhere

Click to Enlarge



Picture showing the popup window of loop with Each Node In An XML Dataset option selected

Click to Enlarge



Picture showing the code of looping through all the nodes in XML

Click to Enlarge


End Session




Picture showing a popup window of XML commands with End XML session option selected

Click to Enlarge



Picture showing the complete code of accessing XML in automation anywhere

Click to Enlarge


Output


Picture showing the data read from XML in the message boxes

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, September 20, 2018

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250