Interface IXPathNSResolver

Interface IXPathNSResolver

Namespace: Aspose.Html.Dom.XPath
Assembly: Aspose.HTML.dll (25.2.0)

The XPathNSResolver interface permit prefix strings in the expression to be properly bound to namespaceURI strings. Aspose.Html.Dom.XPath.IXPathEvaluator can construct an implementation of Aspose.Html.Dom.XPath.IXPathNSResolver from a node, or the interface may be implemented by any application.

[DOMName("XPathNSResolver")]
[DOMObject]
[ComVisible(true)]
public interface IXPathNSResolver

Methods

LookupNamespaceURI(string)

Look up the namespace URI associated to the given namespace prefix. The XPath evaluator must never call this with a null or empty argument, because the result of doing this is undefined.

[DOMName("lookupNamespaceURI")]
string LookupNamespaceURI(string prefix)

Parameters

prefix string

The prefix to look for.

Returns

string

Returns the associated namespace URI or null if none is found.