Problem Statement: we need to extract all the data from XML file called Book.XML and display it to the end user
Import system.xml and system.xml.linq to the project. Here is how you can do it
Now, add 2 assign activities to the workflow area and write the following code.
This will load the xml and save it into element of ‘XElement’ type
This query will store the XML elements into IEnumberable
Let’s run the program and see the action
YouTube: How to read XML file Using LINQ in UiPath - YouTube
Medium: How to extract data from XML file using LINQ in UiPath - Manoj Batra - Medium
Code: UiPathSamples/13 - ReadXMLUsingLinq at main · manojbatra071/UiPathSamples · GitHub
Happy Automation