I have been using com.sun.org.apache.xpath.internal.XPathAPI for some time and it seems to work ok. Recently I tried to use the TPTP profiler in Eclipse but it could not find the XPathAPI class.
I haven’t figured this problem yet but it did make me wonder whether I should be using a class in an ‘internal’ package? Should I be using the Xalan library? Or what??
(I’m currently using JRE 1.5.0_06 for this project)
All classes under the com.sun package are internal implementation details. You should never reference them directly.
The base for xPath in the JDK is javax.xml.xpath.