From 2d4e549049a2ed593f5e295b95371c02540d41b1 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 19 Oct 2014 07:34:02 +0000 Subject: docs: Update XPath documentation Add documentation for xpath_query::evaluate_node and change select_single_node to select_node in documentation and samples. git-svn-id: https://pugixml.googlecode.com/svn/trunk@1066 99668b35-9821-0410-8761-19e4c4f06640 --- docs/samples/xpath_select.cpp | 2 +- docs/samples/xpath_variables.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/samples') diff --git a/docs/samples/xpath_select.cpp b/docs/samples/xpath_select.cpp index 51ede61..74dad60 100644 --- a/docs/samples/xpath_select.cpp +++ b/docs/samples/xpath_select.cpp @@ -18,7 +18,7 @@ int main() std::cout << node.node().attribute("Filename").value() << "\n"; } - pugi::xpath_node build_tool = doc.select_single_node("//Tool[contains(Description, 'build system')]"); + pugi::xpath_node build_tool = doc.select_node("//Tool[contains(Description, 'build system')]"); if (build_tool) std::cout << "Build tool: " << build_tool.node().attribute("Filename").value() << "\n"; diff --git a/docs/samples/xpath_variables.cpp b/docs/samples/xpath_variables.cpp index 5404c0b..52313bf 100644 --- a/docs/samples/xpath_variables.cpp +++ b/docs/samples/xpath_variables.cpp @@ -27,7 +27,7 @@ int main() std::cout << "Local tool: "; tools_local[0].node().print(std::cout); - // You can pass the context directly to select_nodes/select_single_node + // You can pass the context directly to select_nodes/select_node pugi::xpath_node_set tools_local_imm = doc.select_nodes("/Profile/Tools/Tool[@AllowRemote = string($remote)]", &vars); std::cout << "Local tool imm: "; -- cgit v1.2.3