module

XPath2

XPath2 Shard provide XPath implementation in pure Crystal. Performs the compilation of XPath expression and provides mechanism to select nodes from HTML or other documents using XPath expression

Constants

VERSION = "0.1.3"

Class methods

compile(expr : String, variables : Hash(String, ExprResult))

compile compiles an XPath expression string with variable bindings. Variables can be referenced in the expression as $name. Example: compile("//item[@id=$target]", {"target" => "123"})

Source
compile(expr : String)

compile compiles an XPath expression string

Source

Nested types