How to skip and get elements from XML based on user input using LINQ in UiPath

Problem statement: we have an XML file and need to extract elements at a certain position based on user input

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 get the element the elements

LINQ

Run the program and see the action

YouTube: How to skip and get elements from XML based on user input using LINQ in UiPath - YouTube

Code: UiPathSamples/21 - Skip and get elements from XML based on user input using LINQ at main · manojbatra071/UiPathSamples · GitHub

Medium: How to skip and get elements from XML based on user input using LINQ in UiPath - Manoj Batra - Medium

Happy Automation