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.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to