Hi Martin
Yes my the previous mail was incorrect. More below...
From: "bob mcwhirter" <[EMAIL PROTECTED]>
> On Mon, 24 Sep 2001, Martijn Koster wrote:
>
> > In
http://www.mail-archive.com/dom4j-user%40lists.sourceforge.net/msg00088.html
> > James wrote:
> >
> > AFAIK when you don't put prefixes in an XPath expression it should
just
> > match on local name only (i.e. ignores prefixes)
> >
> > Did that turn out not to be the case? In the appended example the first
> > test returns 0. Am I doing somthing wrong?
>
> Nope, not the case. XPaths with prefixes only match elements without
> namespaces.
I think theres a typeo in that bob, I think you meant to say....
XPaths *without* prefixes only match elements without namespaces.
For XPaths which use prefixes then the NamespaceContext used to evaluate the
namespace is used to turn those prefixes into namespace URIs and those URIs
are used when evaluating the XPath expression.
So XPaths with prefixes will only match nodes with namespaces (whether it
uses a prefix or the default namespace notation).
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user