Document.Evaluate

Document.Evaluate method

Evaluates an XPath expression String and returns a result of the specified type if possible.

public IXPathResult Evaluate(String expression, Node contextNode, IXPathNSResolver resolver, 
    XPathResultType type, object result)
ParameterTypeDescription
expressionStringThe XPath expression String to be parsed and evaluated.
contextNodeNodeThe context is context node for the evaluation of this XPath expression.
resolverIXPathNSResolverThe resolver permits translation of all prefixes, including the xml package prefix, within the XPath expression into appropriate package URIs.
typeXPathResultTypeIf a specific type is specified, then the result will be returned as the corresponding type.
resultObjectThe result specifies a specific result object which may be reused and returned by this method.

Return Value

The result of the evaluation of the XPath expression.

See Also