# XML etree not found

**URL:** <https://forum.inductiveautomation.com/t/xml-etree-not-found/75850>\
**Category:** Ignition\
**Created:** [July 3, 2023, 2:29pm UTC](https://forum.inductiveautomation.com/t/xml-etree-not-found/75850 "2023-07-03T14:29:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 3, 2023, 2:40pm UTC](https://forum.inductiveautomation.com/t/xml-etree-not-found/75850/2 "2023-07-03T14:40:59Z")

</div>

I never use it. A lot of people report problems. I recommend java's native XML.

See this older topic:

> [@XML Parsing Failing Every 10 Runs of Code](https://forum.inductiveautomation.com/t/xml-parsing-failing-every-10-runs-of-code/21838/3):
>
> Consider using the Java native XML handling, which yields an XML Document with standard DOM methods. [https://docs.oracle.com/javase/8/docs/api/org/w3c/dom/Document.html](https://docs.oracle.com/javase/8/docs/api/org/w3c/dom/Document.html) You might find my [shared script module](https://www.automation-pros.com/ignition/xml.py) a start, used like so: dom = shared.xml.strToDoc(oxml)

And this more recent discussion:

> [@New conversion from python parsing to Java](https://forum.inductiveautomation.com/t/new-conversion-from-python-parsing-to-java/49202):
>
> Here is the current block of code where I am using the parse with jython solution that tends to lock up every so often. import xml.etree.ElementTree as ET #read the xml filef for device in importDevices: filePath = '%s/%s.xml' % (rootPath,device) #print 'reading %s' % filePath deviceStart = system.date.now() #logger.info('Before: tree = ET.parse(filePath)') tree = ET.parse(filePath) #logger.info('After: tree = ET.parse(filePath)') xmlFile = tree.getroot() I made the f…

---

_[View the full topic](https://forum.inductiveautomation.com/t/xml-etree-not-found/75850)._
