# Creat Xml node in UiPath Studio using LoadXml function

**URL:** <https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395>\
**Category:** StudioX\
**Tags:** invoke-code, csharp, question, studio, system, activities\
**Created:** [September 23, 2022, 11:14am UTC](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395 "2022-09-23T11:14:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![noob\_dev](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/noob_dev/32/335761_2.png) [@noob\_dev](https://forum.uipath.com/u/noob_dev)\
**Post date:** [September 23, 2022, 11:14am UTC](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395/1 "2022-09-23T11:14:17Z")

</div>

hi guys,

I’m trying creat a xNa in type System.Xml.XmlNode from a XElement (type System.Xml.Linq.XElement.  
I’m following this tutorial

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/8/6/08641f49ae88d665aa26d8ed66b33a2b598fe1c6.png)  
but in invoke code the LoadXml function doesn’t work. This is my code:  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/4/d/c4de34debca9cf95b334fa97dd29a2e9ce7a28cd.png)  
Can I use this function in UiPath?

---

<div class="post-metadata">

**Author:** ![noob\_dev](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/noob_dev/32/335761_2.png) [@noob\_dev](https://forum.uipath.com/u/noob_dev)\
**Post date:** [September 23, 2022, 11:35am UTC](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395/2 "2022-09-23T11:35:47Z")

</div>

this is the log  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/c/c/fccbe5080fcf4a9fb14b8c82fe35e0bf9798de0f.png)

---

<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:** [September 23, 2022, 12:11pm UTC](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395/3 "2022-09-23T12:11:55Z")

</div>

a few things to clear:

- we do see a mix of two API the xml Api - XmlDocument
- LINQ for XML - Element

to list the Sets:

- XmlDocument & XMLNode & XMLElement
- XDocument & XNode & XElement

Just to mention one of some more things which are not matching.

We guess you are doing this for learning purpose. Let us know on what topic you are focussing and we will assist

---

<div class="post-metadata">

**Author:** ![noob\_dev](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/noob_dev/32/335761_2.png) [@noob\_dev](https://forum.uipath.com/u/noob_dev)\
**Post date:** [September 26, 2022, 2:05am UTC](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395/4 "2022-09-26T02:05:12Z")

</div>

thank you @ppr, noted your mention.  
but my idea is switch a string to a xmldocument by XmlDocument.LoadXml method, not Load method.  
btw, thank you

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [September 30, 2022, 9:34am UTC](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395/5 "2022-09-30T09:34:24Z")

</div>

Closed on September 30, 2022, 9:34am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
