Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

XPath support in Java XML API?

843834Jun 5 2002 — edited Jun 7 2002
Hello,

I have an application in which I am loading an xml document and then parsing through the DOM to get the elements and values that I need from the document. I had done this previously in other environments where I could use XPath statements to quickly parse to a specific node that I am searching for. However, I am not noticing any support for XPath in the latest version of the Java XML API. Is there really no support for this or have I yet to find it?

Thanks.

Comments

843834
To answer my own question, I found references in other discussions to the Xalan project (http://xml.apache.org) which supplies me with an API to perform XPath queries against a loaded DOM.

Thanks.
843834
I have been using the Apaxhe XPathAPI class in my own code for a while and it is an excellent way of querying a loaded XML DOM. My only concern is that requires that you use 'non-standard' API. I would like to see this in the standard java XML API.
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 5 2002
Added on Jun 5 2002
2 comments
71 views