Hi Joseph
This sounds like a namespace issue. Does your XML document look something
like this...
<foo xmlns="something">
<ENTRY>
...
</ENTRY>
</foo>
i.e. that the <ENTRY> elements are all in some namespace? If so, then this
is correct behaviour. To match elements in a namespace you must use either
the functions name(), local-name() and namespace-uri() to match nodes or use
namespace prefixes in your XPath expression.
e.g. you could use
//my:ENTRY
if you had bound the 'my' prefix to the namespace URI thats used in your XML
document.
James
----- Original Message -----
From: "Joseph Rajkumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 27, 2001 5:48 PM
Subject: Re: [dom4j-user] Issue with dom4j 1.1
> Hi
> Just a quick question for you:
>
> I am trying to use dom4j for a project and when I try:
>
> This XPath returns zero nodes ==> "//ENTRY"
>
> Whereas this returns the correct values: ==> "//*[name()='ENTRY']"
>
> Has there been some radical change or am I missing some thing.
>
> Regards
> Joseph Rajkumar
_________________________________________________________
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