/src/main/java/org/htmlunit/html/xpath/HtmlUnitPrefixResolver.java
final DomElement documentElement = ( ( XmlPage ) namespaceContext ) .getDocumentElement ( ) ;
} @Override public String getNamespaceForPrefix(final String prefix, final Node namespaceContext) { String namespace = super.getNamespaceForPrefix(prefix, namespaceContext); if (namespace == null) { if (namespaceContext instanceof XmlPage) { <extra_id_0> if (documentElement != null) { namespace = getNamespace(documentElement, prefix); } } else if (namespaceContext instanceof DomElement) { namespace = getNamespace((DomElement) namespaceContext, prefix);