# XML reading nodes

**URL:** <https://forum.dynamobim.com/t/xml-reading-nodes/74458>\
**Category:** Packages\
**Tags:** lunchbox, excel, python, xml\
**Created:** [March 17, 2022, 7:20am UTC](https://forum.dynamobim.com/t/xml-reading-nodes/74458 "2022-03-17T07:20:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![theshysnail](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/theshysnail/32/146653_2.png) [@theshysnail](https://forum.dynamobim.com/u/theshysnail)\
**Post date:** [March 17, 2022, 7:20am UTC](https://forum.dynamobim.com/t/xml-reading-nodes/74458/1 "2022-03-17T07:20:51Z")

</div>

Hi all,

Is there any dynamo package where I can find nodes for reading/deserializing XML files?  
I see [Lunchbox](http://www.theprovingground.org/2015/04/integrating-xml-with-dynamo-via-lunchbox.html) had them but they seem to be out of Dynamo game now.

Any help with python code/custom node would be appreciated.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [March 17, 2022, 8:08am UTC](https://forum.dynamobim.com/t/xml-reading-nodes/74458/2 "2022-03-17T08:08:51Z")

</div>

Hi @theshysnail ,

Could you upload (and a screenshot of) a sample of you XML-file?

---

<div class="post-metadata">

**Author:** ![theshysnail](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/theshysnail/32/146653_2.png) [@theshysnail](https://forum.dynamobim.com/u/theshysnail)\
**Post date:** [March 17, 2022, 9:08am UTC](https://forum.dynamobim.com/t/xml-reading-nodes/74458/3 "2022-03-17T09:08:48Z")

</div>

It’s just a Navisworks Clash report. Changed extension \*.xml to \*.txt for uploading here.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/f/df9ab1741953ca7db2604fdb8db5da96d6ce287b.png)

[SampleProject.txt](https://forum.dynamobim.com/uploads/short-url/27sMSfr0ZofzGfddtQ6MpbSRzje.txt) (146.2 KB)

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [March 18, 2022, 7:57am UTC](https://forum.dynamobim.com/t/xml-reading-nodes/74458/4 "2022-03-18T07:57:13Z")

</div>

I can’t quite remember why I did it this way- but had some success parsing the XML into JSON objects- then using this in Dynamo.

The source was an animation camera path from Enscape in XML format- one of the annoying features of Enscape at the time (no idea if it is still the same) is that there was no easy way to aim all the cameras at the next camera position, so that the animation was a smooth path, rather than having wonky cameras pointing off to the side. I used Dynamo to read in an Enscape XML path (with wonky cameras) and write out a smoothed XML file- worked a treat.

Depending what you want to do with the Navisworks clash XML file- this might be an option

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c4d1fa2f6c8337547fe37ef3c21ae954fadf7f4b.png)
