0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-31 00:13:01 +08:00

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
This commit is contained in:
arseny.kapoulkine@gmail.com 2012-03-23 03:40:12 +00:00
parent 0237fb466e
commit 5e33adbc68
2 changed files with 8 additions and 0 deletions

View File

@ -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)
{

View File

@ -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__