jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Waschkowski" <mwaschkow...@gmail.com>
Subject Re: getNode without the name
Date Tue, 26 Jun 2007 18:41:25 GMT
As well, you can test xpath's easily here:
 http://b-cage.net/code/web/xpath-evaluator.html

MW

On 6/26/07, Mark Waschkowski <mwaschkowski@gmail.com> wrote:
>
> I believe you may be looking for this:
>
> /node/node/descendant::*[2]
>
> As well, you can see more examples here (a resource I've found useful in
> the past):
>
>   http://www.zvon.org/xxl/XPathTutorial/General/examples.html
>
> Best,
>
> Mark
>
> On 6/26/07, Frédéric Esnault < fesn@legisway.com> wrote:
> >
> > Hi all,
> >
> >
> >
> > I was wondering, is there a way to get a node (with NodeImpl.getNode()
> > or something else), to get a node without knowing its name ?
> >
> > For example, under the lgw:contracts node, I have plenty of nodes named
> > with their uuid. I want, from the lgw:contracts node, to get the node with
> > index 5.
> >
> >
> >
> > The * being forbidden, and no child axis existing, I don't know if it's
> > possible.
> >
> >
> >
> > Any idea?
> >
> >
> >
> > Frederic Esnault
> >
> >
>
>
> --
> Best,
>
> Mark Waschkowski




-- 
Best,

Mark Waschkowski

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message