Public Member Functions | |
xpath_query (const char_t *query) | |
Ctor from string with XPath expression. | |
~xpath_query () | |
Dtor. | |
xpath_type_t | return_type () const |
Get query expression return type. | |
bool | evaluate_boolean (const xml_node &n) const |
Evaluate expression as boolean value for the context node n. | |
double | evaluate_number (const xml_node &n) const |
Evaluate expression as double value for the context node n. | |
string_t | evaluate_string (const xml_node &n) const |
Evaluate expression as string value for the context node n. | |
xpath_node_set | evaluate_node_set (const xml_node &n) const |
Evaluate expression as node set for the context node n. |
|
Ctor from string with XPath expression. Throws xpath_exception on compilation error, std::bad_alloc on out of memory error.
|
|
Get query expression return type.
|
|
Evaluate expression as boolean value for the context node n. If expression does not directly evaluate to boolean, the expression result is converted as through boolean() XPath function call. Throws std::bad_alloc on out of memory error.
|
|
Evaluate expression as double value for the context node n. If expression does not directly evaluate to double, the expression result is converted as through number() XPath function call. Throws std::bad_alloc on out of memory error.
|
|
Evaluate expression as string value for the context node n. If expression does not directly evaluate to string, the expression result is converted as through string() XPath function call. Throws std::bad_alloc on out of memory error.
|
|
Evaluate expression as node set for the context node n. If expression does not directly evaluate to node set, throws xpath_exception. Throws std::bad_alloc on out of memory error.
|