module XPath2
Overview
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
Extended Modules
Defined in:
xpath2.crxpath2/build.cr
xpath2/functions.cr
xpath2/operators.cr
xpath2/parse.cr
xpath2/query.cr
Constant Summary
-
VERSION =
"0.1.3"
Class Method Summary
-
.compile(expr : String, variables : Hash(String, ExprResult))
compile compiles an XPath expression string with variable bindings.
-
.compile(expr : String)
compile compiles an XPath expression string
Class Method Detail
def self.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"})