DocumentEvaluate Method
Evaluates an XPath expression string and returns a result of the specified type if possible.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 22.5
Syntax
public IXPathResult Evaluate(
	string expression,
	Node contextNode,
	IXPathNSResolver resolver,
	XPathResultType type,
	Object result
)

Parameters

expression
Type: SystemString
The XPath expression string to be parsed and evaluated.
contextNode
Type: Aspose.Html.DomNode
The context is context node for the evaluation of this XPath expression.
resolver
Type: Aspose.Html.Dom.XPathIXPathNSResolver
The resolver permits translation of all prefixes, including the xml namespace prefix, within the XPath expression into appropriate namespace URIs.
type
Type: Aspose.Html.Dom.XPathXPathResultType
If a specific type is specified, then the result will be returned as the corresponding type.
result
Type: SystemObject
The result specifies a specific result object which may be reused and returned by this method.

Return Value

Type: IXPathResult
The result of the evaluation of the XPath expression.

Implements

IXPathEvaluatorEvaluate(String, Node, IXPathNSResolver, XPathResultType, Object)
See Also