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




  1. Start a XML session
  2. Get data from multiple nodes.
  3. Loop through the result set
  4. End Session.



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