commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <dmi...@apache.org>
Subject Re: [JXPath] How to use JXPath for Parsing (not Evaluating) XPath?
Date Fri, 05 Aug 2005 18:16:13 GMT
Yaron,

JXPath will do that for you.  It does compile expressions (use the
static method on JXPathContext) and returns a tree.
One nice feature of that three is that if you call toString() on any
subtree, it returns the XPath it represents.

- Dmitri

--- yaron kanza <yaron.kanza@gmail.com> wrote:

> Hello,
> 
> I need an XPath parser. That is, a tool that receives an XPath
> expression and returns either an object tree that represents the
> expression (DOM style) or a series of events (SAX style).
> 
> Is JXPath the right tool for parsing XPath expressions?
> If not, what is the right tool for parsing XPath?
> 
> In the user's guide I found only examples showing how to use JXPath
> for evaluating XPath expressions. I didn't find example showing how
> to
> parse XPath.
> 
> Can someone please provide me more information on how to use JXPath
> for parsing expressions?
> 
> Does someone have examples showing how to use JXPath as a parser?
> 
> Thank you,
> 
> Yaron Kanza
> The University of Toronto, Canada
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message