From 23d84cdf7c9a7d91d46bd98aed070148cb697b77 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 29 Aug 2010 15:38:43 +0000 Subject: XPath: Implemented variable support in queries git-svn-id: http://pugixml.googlecode.com/svn/trunk@680 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 7e09551..20e8716 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -325,6 +325,7 @@ namespace pugi class xpath_node; class xpath_node_set; class xpath_query; + class xpath_variable_set; #endif /** @@ -1192,7 +1193,7 @@ namespace pugi * \param query - query string * \return first node from the resulting node set by document order, or empty node if none found */ - xpath_node select_single_node(const char_t* query) const; + xpath_node select_single_node(const char_t* query, xpath_variable_set* variables = 0) const; /** * Select single node by evaluating XPath query @@ -1208,7 +1209,7 @@ namespace pugi * \param query - query string * \return resulting node set */ - xpath_node_set select_nodes(const char_t* query) const; + xpath_node_set select_nodes(const char_t* query, xpath_variable_set* variables = 0) const; /** * Select node set by evaluating XPath query @@ -1889,7 +1890,7 @@ namespace pugi * * \param query - string with XPath expression */ - explicit xpath_query(const char_t* query); + explicit xpath_query(const char_t* query, xpath_variable_set* variables = 0); /** * Destructor -- cgit v1.2.3