/src/main/java/org/htmlunit/html/xpath/HtmlUnitPrefixResolver.java
namespace = getNamespaceForPrefix( ( DomElement) namespaceContext, prefix) ;
namespace = getNamespace ( ( DomElement ) namespaceContext, prefix ) ;
final DomElement documentElement = ((XmlPage) namespaceContext).getDocumentElement(); if (documentElement != null) { namespace = getNamespace(documentElement, prefix); } } else if (namespaceContext instanceof DomElement) { <extra_id_0> } } return namespace; } private String getNamespace(final DomElement element, final String prefix) { final Map<String, DomAttr> attributes = element.getAttributesMap();