class

KXML::XPath::Evaluator

Inherits Reference < Object

Evaluator for XPath 1.0 expressions against a KXML DOM.

Constants

REVERSE_AXES = [:ancestor, :ancestor_or_self, :preceding, :preceding_sibling]

Constructors

new(expr : Expr, ns_map : Nil | Hash(String, String) = nil, vars : Nil | Hash(String, Array(KXML::Attribute | KXML::Node) | Bool | Float64 | String) = nil)
Source

Class methods

evaluate(expr : String, context : Node | Attribute, position : Int32 = 1, size : Int32 = 1, ns_map : Hash(String, String) | Nil = nil, vars : Hash(String, Value) | Nil = nil) : Value
Source

Instance methods

eval(context : Node | Attribute, position : Int32, size : Int32) : Value
Source