From 888934dac675405d46e51985050362f690e16143 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Sat, 27 Jul 2013 11:32:44 +0000 Subject: 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 --- src/pugixml.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 text 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 -- cgit v1.2.3