# Get multiple node in xml file

**URL:** <https://forum.uipath.com/t/get-multiple-node-in-xml-file/566395>\
**Category:** Studio\
**Created:** [July 25, 2023, 5:16am UTC](https://forum.uipath.com/t/get-multiple-node-in-xml-file/566395 "2023-07-25T05:16:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruskie143](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@Bruskie143](https://forum.uipath.com/u/Bruskie143)\
**Post date:** [July 25, 2023, 5:16am UTC](https://forum.uipath.com/t/get-multiple-node-in-xml-file/566395/1 "2023-07-25T05:16:41Z")

</div>

Hello. I would like to know if there’s a way to get multiple xml node with same name and store them by group? See example below for the xml:

 Julie Monty Clark Isabel Clarice Robert Jesse Marie Juliana Bart Margie Mario 

What I want to accomplish here is to group each and store them in a variable (1 variable = 1 contents). Thank you and I hope my question is not confusing.

---

<div class="post-metadata">

**Author:** ![lrtetala](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@lrtetala](https://forum.uipath.com/u/lrtetala)\
**Post date:** [July 25, 2023, 5:27am UTC](https://forum.uipath.com/t/get-multiple-node-in-xml-file/566395/2 "2023-07-25T05:27:20Z")

</div>

Hi @Bruskie143

Welcome to Community!!

1. Read Text File (Output: xmlContent)

2. Assign  
To: xmlDocument  
Value: XDocument.Parse(xmlContent)

3. Assign  
To: xmlNodes  
Value: xmlDocument.Root.SelectNodes(“nodeName”)

4. For Each node in xmlNodes

Regards,

---

<div class="post-metadata">

**Author:** ![Bruskie143](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@Bruskie143](https://forum.uipath.com/u/Bruskie143)\
**Post date:** [July 25, 2023, 5:37am UTC](https://forum.uipath.com/t/get-multiple-node-in-xml-file/566395/3 "2023-07-25T05:37:12Z")

</div>

Hello Irtetala,  
I just noticed that my question lacks structure so please see the screenshot below

 ![uipathforum](https://global.discourse-cdn.com/uipath/original/4X/1/1/8/1189fb535b1ce2df82bede1372e06b559df24aac.png)

I want to store each family node (which has 3 family components) in a variable so that if ever I want to access a particular family node, I can do it easily. I hope that it’s clear.

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [July 25, 2023, 8:12am UTC](https://forum.uipath.com/t/get-multiple-node-in-xml-file/566395/4 "2023-07-25T08:12:41Z")

</div>

Cross reference:

> [@Get each elements in xml and store them individually in a variable](https://forum.uipath.com/t/get-each-elements-in-xml-and-store-them-individually-in-a-variable/566409/9):
>
> we do not recommend to store each family on a separate variable, as the occurrence of family/family count can be dynamic. In general we do: [grafik] output: xDoc | DataType: XDocument For getting all family elements: xDoc.Descendants(“family”) eg. for feeding a for each activity for looping For getting all family members as Text e.g. from the second family: [grafik] A good strategy could also be a List of Dictionaries [grafik] Prototypes were done within immediate panel: [Understandin…](https://forum.uipath.com/t/understanding-the-6-debugging-panels-of-uipath-in-the-easiest-way-possible/353606)
