40#ifndef _xmlwrapp_xpath_h_
41#define _xmlwrapp_xpath_h_
47#include "xmlwrapp/export.h"
53XMLWRAPP_MSVC_SUPPRESS_DLL_MEMBER_WARN
63struct xpath_context_impl;
146 std::unique_ptr<impl::xpath_context_impl> pimpl_;
151XMLWRAPP_MSVC_RESTORE_DLL_MEMBER_WARN
This class implements a read-only view of XML nodes.
Definition nodes_view.h:256
The xml::document class is used to hold the XML tree and various bits of information about it.
Definition document.h:88
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing,...
Definition errors.h:89
The xml::node class is used to hold information about one XML node.
Definition node.h:92
This class implements a view of XML nodes.
Definition nodes_view.h:82
Context in which XPath expressions can be evaluated.
Definition xpath.h:75
void register_namespace(const std::string &prefix, const std::string &href)
Register a namespace with prefix.
xpath_context(const xml::document &doc)
Create XPath context for the given document.
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.
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.
const_nodes_view evaluate(const std::string &expr, error_handler &on_error=throw_on_error)
Execute an XPath query in the document scope.
This file contains errors-handling classes: xml::exception and xml::error_handler and derived classes...
XML library namespace.
Definition attributes.h:55
This file contains the definition of the xml::nodes_view and xml::const_nodes_view classes.
This file contains the definition of the xml::init class.