Mumtaz,
I would try "companies[department/name='xyz']"
Cheers,
- Dmitri
----- Original Message -----
From: "Mumtaz Siddiqui" <mumtaz@dps.uibk.ac.at>
To: <commons-dev@jakarta.apache.org>
Sent: Thursday, August 17, 2006 8:40 AM
Subject: JXPath query
> Is it possible to get iteration of root obejects for which
> XPath expression is true instead of having only the iteration
> of the leaf-objects according the the XPath? e.g.
>
> in case of "companies/department[name='xyz']" I am interested
> in companies having departments with name='xyz'
>
>
> mumtaz
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
|