diff options
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__ |