GXml.XPathContext.evaluate – GXml-0.20 – Vala Binding Reference

GXml.XPathContext.evaluate – GXml-0.20 Reference Manual

# evaluate

## Description:

public abstract XPathObject evaluate (string expression, Map<string,string>? resolver = null) throws XPathObjectError

Evaluate XPath expression.

This method evaluates provided expression, registers provided namespaces in resolver and returns an GXml.XPathObject.

Resolver is a map where its key is the namespace's prefix and its value is the namespace's URI

Throw GXml.XPathError if one of provided namespaces is invalid.