evaluate method

evaluate

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

Returns

The result of the evaluation of the XPath expression.

def evaluate(self, expression, context_node, resolver, type, result):
    ...
ParameterTypeDescription
expressionstrThe XPath expression string to be parsed and evaluated.
context_nodeNodeThe context is context node for the evaluation of this XPath expression.
resolveraspose.svg.dom.xpath.IXPathNSResolverThe resolver permits translation of all prefixes, including the xml
namespace prefix, within the XPath expression into appropriate namespace URIs.
typeaspose.svg.dom.xpath.XPathResultTypeIf a specific type is specified, then the result will be returned as the corresponding type.
resultanyThe result specifies a specific result object which may be reused and returned by this method.

See Also