const_nodes_view evaluate(const std::string &expr, error_handler &on_error=throw_on_error)
Execute an XPath query in the document scope.
void register_namespace(const std::string &prefix, const std::string &href)
Register a namespace with prefix.
const_nodes_view evaluate(const std::string &expr, const xml::node &n, error_handler &on_error=throw_on_error)
Execute an XPath query in the scope of XML node n.
Context in which XPath expressions can be evaluated.
Definition: xpath.h:72
xpath_context(const xml::document &doc)
Create XPath context for the given document.
nodes_view evaluate(const std::string &expr, xml::node &n, error_handler &on_error=throw_on_error)
Execute an XPath query in the scope of XML node n.