[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XPath parser in Java

kla gw klarinda.gw at gmail.com
Tue Oct 10 13:50:01 PDT 2006


  XPath parser in Java
Hi,

Is there any XPath Parser written in java?

But I do not want the XPath parser to evaluate the XPath expression
and return the XML nodes (I don't want the XPath parser to query the
XML document). Rather, I want the XPath parser to return an array or a
list or tree or anything where I can traverse step by step.

I am looking for something like this:
xpath = XPathParser.parse("/a/b[P and Q]/following::*[2]");

xpath.step(1) will return axis = child, NameTest = a
xpath.step(2) will return axis = child, NameTest = b, predicate = P and Q
predicate can further be divided into predicate.part(1) = P,
predicate.part(2) = Q, predicate.boolean() = and
(P and Q can be something such as xyz = 'some value' or XPath function)
xpath.step(3) will return axis = following, NameTest = *, predicate = 2

Thanks,

Klarinda


Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.