commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuri Ushakov" <yuri.usha...@gmail.com>
Subject JXPath API
Date Tue, 22 May 2007 07:23:10 GMT
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


Mime
View raw message