Hi,
 
I am trying to use the org.apache.xpath.XPathAPI to select a single
node's value from my xml file.
I am using the Xalan-Java version 2.2.D10
 
When I try to run the xalan ApplyXPath sample which comes as part of the
xalan downloads, I get the following error on the line where I called 
XPathAPI.selectNodeIterator function. 

Exception in thread "main" java.lang.NoSuchMethodError
        at
org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.addNode(DOM2DTM.java:262)
        at
org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(DOM2DTM.java:151)
        at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:1
89)
        at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManager
Default.java:438)
        at
org.apache.xpath.XPathContext.getDTMHandleFromNode(XPathContext.java:195
)
        at org.apache.xpath.XPathAPI.eval(XPathAPI.java:274)
        at
org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:163)
        at
org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:143)
        at ApplyXPath.doMain(ApplyXPath.java:128)
        at ApplyXPath.main(ApplyXPath.java:159)
 
Is there a problem with the XPath API on the version of Xalan I am
using? if anybody has an idea please let me know.
Thanks in advance.
 
Ashok

<<winmail.dat>>

Reply via email to