# How to batch upgrade Dynamo files from Dynamo 1.x to 2.x? XML to JSON

**URL:** <https://forum.dynamobim.com/t/how-to-batch-upgrade-dynamo-files-from-dynamo-1-x-to-2-x-xml-to-json/100211>\
**Category:** Developers\
**Tags:** revit, python, dynamo\
**Created:** [April 18, 2024, 3:24pm UTC](https://forum.dynamobim.com/t/how-to-batch-upgrade-dynamo-files-from-dynamo-1-x-to-2-x-xml-to-json/100211 "2024-04-18T15:24:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [April 18, 2024, 4:37pm UTC](https://forum.dynamobim.com/t/how-to-batch-upgrade-dynamo-files-from-dynamo-1-x-to-2-x-xml-to-json/100211/4 "2024-04-18T16:37:22Z")

</div>

Hi,

I did this for “ **dyf** ” you can try to adapt for “ **dyn** ”

> [@Custom Nodes : Conversion Xml to Json architecture](https://forum.dynamobim.com/t/custom-nodes-conversion-xml-to-json-architecture/75610):
>
> Hello all I share a Python script to convert old dyf(s) with Xml architecture to new Json architecture (custom node). Conversion to launch from Dynamo Revit higher than 2.04. Note With Dynamo 2.13+ if your custom nodes are written with IronPython2 engine and the dyf’s format is Xml (old dyf architecture) this will default affect to the CPython3 engine instead of the ipy2 engine. \_\_author\_\_ = "Cyril POUPIN" \_\_license\_\_ = "MIT" \_\_version\_\_ = "0.5" import clr import sys import System from Sy…

_(I didn’t test on my side, I didn’t have old dyns )_

---

_[View the full topic](https://forum.dynamobim.com/t/how-to-batch-upgrade-dynamo-files-from-dynamo-1-x-to-2-x-xml-to-json/100211)._
