Message5423
I'm using jython2.5.1 in MATLAB's JVM. Upon trying to parse an XML file with ElementTree, XMLParser.__init__ tries to get XMLReaderFactory to find "org.python.apache.xerces.parsers.SAXParser". Probably due to limitations in MATLAB's stupid classloader, this does not work (throws a SAXException/ClassNotFoundException)
The only relevant comment on why this weird name is used is expat.py line 51: "Name mangled by jarjar?".
Manually setting expat._xerces_parser to "org.apache.xerces.parsers.SAXParser" resolves the issue.
Perhaps a try block around the XMLReaderFactory call? |
|
Date |
User |
Action |
Args |
2010-01-11 20:37:25 | kwatford | set | recipients:
+ kwatford |
2010-01-11 20:37:25 | kwatford | set | messageid: <1263242245.59.0.298093311564.issue1537@psf.upfronthosting.co.za> |
2010-01-11 20:37:25 | kwatford | link | issue1537 messages |
2010-01-11 20:37:24 | kwatford | create | |
|