summaryrefslogtreecommitdiff
path: root/docs/samples
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-20 20:34:28 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-20 20:34:28 -0700
commitd7ac5e2e0cb0521af1628e95774ad418af82af58 (patch)
tree2fca26ab47941b0511de460de0fc58f0a2882024 /docs/samples
parentfcd1876a21593bd62580383874b57c734d629a0c (diff)
parent7258aea09be1847b3dcc99ca389990027d4a92d3 (diff)
Merge branch 'master' into compact
Diffstat (limited to 'docs/samples')
-rw-r--r--docs/samples/xpath_select.cpp2
-rw-r--r--docs/samples/xpath_variables.cpp2
2 files changed, 2 insertions, 2 deletions
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: ";