Commit 4caa9237 authored by Vitaly Lipatov's avatar Vitaly Lipatov

UniXML: add getContent for iterator (via xmlNodeGetContent)

parent 94868e78
...@@ -186,6 +186,8 @@ class UniXML_iterator ...@@ -186,6 +186,8 @@ class UniXML_iterator
return ""; return "";
} }
const std::string getContent() const;
operator xmlNode*() operator xmlNode*()
{ {
//unideb << "current\n"; //unideb << "current\n";
......
...@@ -470,6 +470,14 @@ string UniXML_iterator::getProp( const string name ) const ...@@ -470,6 +470,14 @@ string UniXML_iterator::getProp( const string name ) const
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
const string UniXML_iterator::getContent() const
{
if (curNode == NULL)
return "";
return (const char*)::xmlNodeGetContent(curNode);
}
// -------------------------------------------------------------------------
string UniXML_iterator::getPropUtf8( const string name ) const string UniXML_iterator::getPropUtf8( const string name ) const
{ {
return UniXML::getPropUtf8(curNode, name); return UniXML::getPropUtf8(curNode, name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment