# SAX2 driver class org.apache.xerces.parsers.SAXParser

**URL:** <https://forum.inductiveautomation.com/t/sax2-driver-class-org-apache-xerces-parsers-saxparser/6620>\
**Category:** Ignition\
**Created:** [May 31, 2013, 5:32pm UTC](https://forum.inductiveautomation.com/t/sax2-driver-class-org-apache-xerces-parsers-saxparser/6620 "2013-05-31T17:32:19Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [February 4, 2021, 12:29pm UTC](https://forum.inductiveautomation.com/t/sax2-driver-class-org-apache-xerces-parsers-saxparser/6620/14 "2021-02-04T12:29:05Z")

</div>

I've had a conversation with IA Support about this error recently and they mentioned there are 3 current bug tickets related to this error. They suggested looking for a workaround since one of those tickets date back to 7.7 days.

I've used SAXParser in previous 7.8 and 7.9 gateways without issues and since version 8, it just about fails every time the script runs in the Client but works in the Designer.

Nick's workaround is great.  
I found this link yesterday for another work around:

> [@XML Parsing Failing Every 10 Runs of Code](http://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)

---

_[View the full topic](https://forum.inductiveautomation.com/t/sax2-driver-class-org-apache-xerces-parsers-saxparser/6620)._
