I'm curious to know why the following code produces a NoSuchMethodError
error.
=================================
public class XPathTest{
//removed rest of code.
public void doXPath(){
XPathContext _xpathcontext = new XPathContext();
DTM dtm = _xpathcontext.createDocumentFragement(); //this line
return the NoSuchMethodError.
}
}
================================
I'm using Xalan-J v2.3.1
I have Xalan.jar and xml-apis.jar in my classpath.
Can anyone explain why this happens. I'm new to Xalan so I'm sure I'm
doing something wrong.