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
return "";
}
const std::string getContent() const;
operator xmlNode*()
{
//unideb << "current\n";
......
......@@ -469,6 +469,14 @@ string UniXML_iterator::getProp( const string name ) const
return UniXML::getProp(curNode, name);
}
// -------------------------------------------------------------------------
const string UniXML_iterator::getContent() const
{
if (curNode == NULL)
return "";
return (const char*)::xmlNodeGetContent(curNode);
}
// -------------------------------------------------------------------------
string UniXML_iterator::getPropUtf8( const string name ) const
{
......
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