From: Jingzhao Ou <ja...@ya...> - 2003-10-28 22:12:41
|
Dear all, I try to use the Java DOM parsers from Jython. The code is: ================================================== from org.w3c.dom import * from javax.xml.parsers import * class XMLParser: def __init__(self, file_name): factory = DocumentBuilderFactory.newInstance() builder = factory.newDocumentBuilder() doc = builder.parse(file_name) self.process(doc.documentElement) <---- this is ok self.process(doc.getElementsByTagName('paper')) <--- this causes the problem ================================================== However, I got the following error: java.lang.IllegalAccessException: java.lang.IllegalAccessException: Class org.python.core.PyReflectedFunction can not access a member of class org.apache.crimson.tree.ParentNode with modifiers "public" If any of you have even use the DOM parser shipped with Java, do you mind giving me some little help? Thanks a lot! Best regards, Jingzhao |