From 48391dbe8c52af5deae62ece3175f0e73da741de Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Fri, 23 Mar 2012 03:08:38 +0000 Subject: Moved default value selection logic into get_value functions, added xml_node::text() accessor git-svn-id: http://pugixml.googlecode.com/svn/trunk@873 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 23480f6..db858d6 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -196,9 +196,11 @@ namespace pugi class xml_attribute_iterator; class xml_tree_walker; - + class xml_node; + class xml_text; + #ifndef PUGIXML_NO_XPATH class xpath_node; class xpath_node_set; @@ -388,6 +390,10 @@ namespace pugi // Get root of DOM tree this node belongs to xml_node root() const; + // Get text object for the current node + const xml_text text() const; + xml_text text(); + // Get child, attribute or next/previous sibling with the specified name xml_node child(const char_t* name) const; xml_attribute attribute(const char_t* name) const; -- cgit v1.2.3