commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: JXPath API
Date Thu, 24 May 2007 04:01:56 GMT
At first glance it appears this, or something similar,
should be sufficient for what you want to do.  Please
assemble some sample code and explain where it is
failing.

Thanks,
Matt

--- Yuri Ushakov <yuri.ushakov@gmail.com> wrote:

> Hello.
> 
> I can't find a way, yet I think it should be
> possible to do something like this:
> 
> JXPathContext subcontext =
>
JXPathContext.newContext(context.selectNodes("//abc"));
> 
> So then subcontext would point to a new sequence and
> I could do
> selects on abc elements in it. When I try to do as
> above, I'm simply
> "browsing" a List implementation object... But I
> need to be able to
> execute a query like this:
> 
> subcontext.selectNodes("*[@a=1][not(@b)]");
> 
> Where "*" is abc elements selected from first query.
> Any tips?
> 
> Thanks,
> Yuri.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 



       
____________________________________________________________________________________Pinpoint
customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

---------------------------------------------------------------------
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