Book Image

Robotic Process Automation with Automation Anywhere

By : Husan Mahey
Book Image

Robotic Process Automation with Automation Anywhere

By: Husan Mahey

Overview of this book

With an increase in the number of organizations deploying RPA solutions, Robotic Process Automation (RPA) is quickly becoming the most desired skill set for both developers starting their career and seasoned professionals. This book will show you how to use Automation Anywhere A2019, one of the leading platforms used widely for RPA. Starting with an introduction to RPA and Automation Anywhere, the book will guide you through the registration, installation, and configuration of the Bot agent and Control Room. With the help of easy-to-follow instructions, you’ll build your first bot and discover how you can automate tasks with Excel, Word, emails, XML, and PDF files. You’ll learn from practical examples based on real-world business scenarios, and gain insights into building more robust and resilient bots, executing external scripts such as VBScripts and Python, and adding error handling routines. By the end of this RPA book, you’ll have developed the skills required to install and configure an RPA platform confidently and have a solid understanding of how to build complex and robust, yet performant, bots.
Table of Contents (20 chapters)

Updating XML nodes

At this point, you should be confident with reading data from XML files. In this section, we will be looking at updating nodes. We will start by updating a single node value. As we did previously, we will need to know the specific record we wish to update. Once we have learned how to update a single node, we will learn how to update multiple nodes. Again, a loop will be needed to perform this task.

Updating a single node

From our sample XML file, we will be updating the genre for the first record. It is currently set to Computer. We will update this to Computer – Software. We know that the record number is 1, and we also know the node is genre. In our XML file, this record currently looks like this:

Figure 10.21 – Current XML record

Figure 10.21 – Current XML record

To apply an update, a two-step process must be performed. Here, you need to make the update and then save the change back to your XML file. You'll need a string variable to save...