IXPathEvaluatorCreateNSResolver Method |
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated
relative to the context of the node where it appeared within the document. This adapter works
like the DOM Level 3 method lookupNamespaceURI on nodes in resolving the namespaceURI
from a given prefix using the current information available in the node's hierarchy at the time
lookupNamespaceURI is called, also correctly resolving the implicit xml prefix.
Namespace: Aspose.Html.Dom.XPathAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
SyntaxIXPathNSResolver CreateNSResolver(
Node nodeResolver
)
Function CreateNSResolver (
nodeResolver As Node
) As IXPathNSResolver
IXPathNSResolver^ CreateNSResolver(
Node^ nodeResolver
)
abstract CreateNSResolver :
nodeResolver : Node -> IXPathNSResolver
Parameters
- nodeResolver
- Type: Aspose.Html.DomNode
The node to be used as a context for namespace resolution.
Return Value
Type:
IXPathNSResolverIXPathNSResolver which resolves namespaces with respect to the definitions
in scope for a specified node.
See Also