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