summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-03-23 03:08:38 +0000
committerarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2012-03-23 03:08:38 +0000
commit48391dbe8c52af5deae62ece3175f0e73da741de (patch)
tree8b381801e4cb7aec0f594aa93c9b3f3182b34d90 /src/pugixml.hpp
parent096a6d0e9c55cf8da165cc64ee4cf06a2f4675c5 (diff)
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
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp8
1 files changed, 7 insertions, 1 deletions
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;