/root/location/address[3] should theoretically work.

Dunno if dom4j has the latest build of jaxen integrated into
the distribution.  There used to be a problem with proximity
predicates that would cause that path to not work.

You can download a nightly build of jaxen (or 1.0-beta-8) and
replace your jaxen-dom4j.jar and jaxen-core.jar and see if
it works better.

        -bob

On Mon, 4 Feb 2002, Frank Walinsky wrote:

> Is it possible to write an XPATH statement that will directly access the 3rd
> instance of element "address" given:
>       <root>
>               <location>
>                       <address>abc</address>
>                       <address>def</address>
>                       <address>ghi</address>
>               </location>
>       </root>
> 
> Any help would be appreciated.  Thanks in advance.
> Frank
> 
> 
> 
> 
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
> 


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to