title: Burp Extension: Parsing XML/Jython
body: <p>I'm writing a Burp extension and need to parse some XML. Using <code>xml.etree.ElementTree</code>, I'm running into <a href="https://forum.portswigger.net/thread/saxparser-dependency-delimma-499c057a" rel="nofollow noreferrer">this</a> issue. Essentially:</p>
  <blockquote>
  <p>SAX for some reason explicitly uses thread's contextClassLoader or system classloader instead of the parent classloader.</p>
  </blockquote>
  <p>Which results in:</p>
  <pre><code>org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
  java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
  </code></pre>
  <p>None of the suggestions have worked for me, and I'm not sure how to resolve this. Since Burp uses a jython stand alone file, is there a way to manually inject the missing class file into the standalone <code>.jar</code>? Every way I've tried results in Burp not being able to load the python environment.</p>
  <p>How can I parse XML within a Burp extension?</p>