IXPathEvaluator class

IXPathEvaluator class

The evaluation of XPath expressions is provided by IXPathEvaluator.

The IXPathEvaluator type exposes the following members:

Methods

MethodDescription
create_expressionCreates a parsed XPath expression with resolved namespaces. This is useful
when an expression will be reused in an application since it makes it possible
to compile the expression string into a more efficient internal form and
preresolve all namespace prefixes which occur within the expression.
create_ns_resolverAdapts 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.
evaluateEvaluates an XPath expression string and returns a result of the specified type if possible.

See Also