Recently I've downloaded Saxonb8-7j, because it implements XPath well. But
when using it, I encountered a problem.
After I using an XPathExpression to get a List of elements, I can cast them
to NodeInfo, that's OK. But I noticed that, in Saxon, there's a class
net.sf.saxon.tree.NodeImpl, which has the method such as getNextSibling().
How can I use this class based on the NodeInfo I got previously? It seems
that each time I wanna use it, I keep getting the error message:
java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl Ho=
can I handle it?
Detailed implementation is as following:
List aList =3D myXPathExpression.evaluate(myDynamicQueryContext);
for (int i=3D0; i<saList.size();i++)
NodeInfo nodeInfo =3D (NodeInfo)aList.get(i); //that's OK
NodeImpl nodeImpl =3D(NodeImpl)aList.get(i); //where I got
Is there anything I missed or did I use it in a wrong way? How can I fix it=
Great many thanks!!