Prefix bindings in the XPath expression are not necessarily the same as the prefix bindings in the document.
Elements in the default namespace must be mapped to a prefix in the XPath expression
The XPathNSResolver
interface provides the necessary bindings.
Java Binding:
package org.w3c.dom.xpath;
public interface XPathNSResolver {
public String lookupNamespaceURI(String prefix);
}