diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-23 03:40:12 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-23 03:40:12 +0000 |
commit | 5e33adbc682aebd99cc86cfe54188857026a3ad4 (patch) | |
tree | dde4b2e43672c9b63f3e44021ca0f41933fcd9b7 /src | |
parent | 0237fb466e36bdfc82c5e9dab1791f546f7e2979 (diff) |
Added xml_text::data() (for regular xml_node operations, i.e. remove_child)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@876 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixml.cpp | 5 | ||||
-rw-r--r-- | src/pugixml.hpp | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 105e056..b51055a 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -4866,6 +4866,11 @@ namespace pugi return *this; } + PUGI__FN xml_node xml_text::data() const + { + return xml_node(_data()); + } + #ifdef __BORLANDC__ PUGI__FN bool operator&&(const xml_text& lhs, bool rhs) { diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 53f4b63..beb5aa5 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -612,6 +612,9 @@ namespace pugi xml_text& operator=(unsigned int rhs); xml_text& operator=(double rhs); xml_text& operator=(bool rhs); + + // Get the data node (node_pcdata or node_cdata) for this object + xml_node data() const; }; #ifdef __BORLANDC__ |