summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2013-07-27 11:32:44 +0000
committerarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2013-07-27 11:32:44 +0000
commit888934dac675405d46e51985050362f690e16143 (patch)
tree12d88c8cd1edd25be7a766f3ed5f148ab0cf696f /src/pugixml.hpp
parentcac6b8720ac9cdb360d03d3c8e2fa721c1802050 (diff)
Clarify value() behavior in header comments; hopefully that'll help with value vs child_value confusion.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@954 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 09be990..f14c710 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -396,8 +396,11 @@ namespace pugi
// Get node type
xml_node_type type() const;
- // Get node name/value, or "" if node is empty or it has no name/value
+ // Get node name, or "" if node is empty or it has no name
const char_t* name() const;
+
+ // Get node value, or "" if node is empty or it has no value
+ // Note: For <node>text</node> node.value() does not return "text"! Use child_value() or text() methods to access text inside nodes.
const char_t* value() const;
// Get attribute list