On Wed, 11 Jul 2001, James Strachan wrote:
> From: "bob mcwhirter" <[EMAIL PROTECTED]>
> > > Hi,
> > > What is the XPath query for the name of the first child element?
> >
> > Probably something like this:
> >
> > local-name(/.)
> > namespace-uri(/.)
>
> Choose either name() or local-name() depending on if your document uses
> namespace prefixes then use either:-
>
> name(/*)
> name(node())
>
> These both work.
>
> I'm not sure name(/.) is a valid path.
/. is a short-hand abbreviated xpath for /self::node(),
which is what you presented.
-bob
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev