When the node is an XMLDocument, bypass calling the `_value.GetStr()` function, since we know we have to return `( const char* )0` inevitably. This fixes #323
@@ -645,6 +645,8 @@ XMLNode::~XMLNode()
const char* XMLNode::Value() const
{
+ if ( this->ToDocument() )
+ return ( const char* )0;
return _value.GetStr();
}