jdom b10版支持xpath,但是我使用 xpath: /root/node1/parent::*时,出现以下异常

04-06-20 zdbj2ee
jdom b10版支持xpath,但是我使用 xpath: /root/node1/parent::*时,出现以下异常

java.lang.NoSuchMethodError: org.jdom.Element.getParent()Lorg/jdom/Element;
at org.jaxen.jdom.DocumentNavigator.getParentAxisIterator(DocumentNavigator.java:252)
at org.jaxen.expr.iter.IterableParentAxis.iterator(IterableParentAxis.java:82)
at org.jaxen.expr.DefaultStep.axisIterator(DefaultStep.java:139)
at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:188)
at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPath.java:126)
at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:107)
at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:716)
at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:239)
at org.jaxen.BaseXPath.selectSingleNode(BaseXPath.java:262)
at org.jdom.xpath.JaxenXPath.selectSingleNode(JaxenXPath.java:154)
at org.jdom.xpath.XPath.selectSingleNode(XPath.java:368)
at XMLTest.main(XMLTest.java:50)
Exception in thread "main"