---
title: XPathNSResolver
slug: Web/API/XPathNSResolver
tags:
  - API
  - DOM
  - DOM XPath API
  - Interface
  - Reference
  - XML
  - XPath
  - XPathNSResolver
browser-compat: api.XPathNSResolver
---
{{APIRef("DOM XPath")}}

The `XPathNSResolver` interface permits prefix strings in an {{Glossary("XPath")}} expression to be properly bound to namespace URI strings.

The {{domxref("XPathEvaluator")}} interface can construct an implementation of `XPathNSResolver` from a node, or the interface may be implemented by any application.

## Methods

- {{DOMxRef("XPathNSResolver.lookupNamespaceURI()")}}
  - : Looks up the namespace URI associated to the given namespace prefix.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("XPathEvaluator")}}
