XPath Libraries for Java

Does anyone here know of an XPath parser and solver for Java? I have an XML file I can parse, but now I wish to find a library that can solve the XPath expression, particularly the ones that are listed on the XForms Basic specifications. Any ideas? Thanks!!
Robert
[273 byte] By [treborgtr] at [2007-11-19 13:04:24]
# 1 Re: XPath Libraries for Java
Java 1.5 comes with a package called javax.xml.xpath where you'll fund relevant classes.

IIRC there should be undocumented support for it in Java 1.4 as well...

- petter
wildfrog at 2007-11-10 3:27:19 >
# 2 Re: XPath Libraries for Java
Hi Wildfrog,

Thanks for the info. However do these have interfaces for solving XPath expressions? or are they interfaces that warrant a developer to write the slover themselves, such as parsing the XPath expression themselves?

Thanks for replying!

Robert
treborgtr at 2007-11-10 3:28:19 >
# 3 Re: XPath Libraries for Java
The JRE (or JDK) is bundeled with a JAXP reference implementation (in 1.4 it was Apache Crimson/Xalan, in 1.5 it is Apache Xerces/Xalan). So you don't need 3. party libraries.

One thing to notice is that there has been some changes in class/package names from 1.4 to 1.5 so you might experience some problems if you try to write code for both platforms.

- petter
wildfrog at 2007-11-10 3:29:20 >