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
This commit is contained in:
parent
cac6b8720a
commit
888934dac6
@ -396,8 +396,11 @@ namespace pugi
|
|||||||
// Get node type
|
// Get node type
|
||||||
xml_node_type type() const;
|
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;
|
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;
|
const char_t* value() const;
|
||||||
|
|
||||||
// Get attribute list
|
// Get attribute list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user