How to apply sorting on nested element from XML using LINQ in UiPath

Problem statement- We have an XML data file and need to sort the data based on zip element and present it to the user

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

Now, write the query to sort the data by zip tag

LINQ

Here is the video and solution to this project

YouTube: How to apply sorting on nested element from XML using LINQ in UiPath - YouTube

Medium: How to apply sorting on nested element from XML using LINQ in UiPath - Manoj Batra - Medium

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