How to find nested elements using descendants Axis from XML using LINQ in UiPath

Problem statement -Problem statement — We have an XML data file and need to retrieve all the Zip codes which is a descendant element in the file

Import system.xml and system.xml.linq to the project.

Now, add 2 assign activities to the workflow area and write the following code.

Query to Load xml file

Let’s run the project and see the output

YouTube: How to find nested elements using descendants Axis from XML using LINQ - YouTube

Code: UiPathSamples/17 Find Nested Elements using Descendants Axis from XML using LINQ at main · manojbatra071/UiPathSamples · GitHub

Medium: How to find nested elements using descendants Axis from XML using LINQ in UiPath - Manoj Batra - Medium

Happy Automation