Problem statement: we have an XML file and need to extract elements at a the end of the list
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

Query
Run the project and see the live action
YouTube: How to get elements at the end of the list from XML using LINQ in UiPath - YouTube
Medium: How to get elements at the end of the list from XML using LINQ in UiPath - Manoj Batra - Medium
Happy Automation
