In TiXmlNode, tinyxml.h
change bool RemoveChild( TiXmlNode* removeThis );
to bool RemoveChild( TiXmlNode* removeThis, bool bDelete = true );
and at tinyxml.cpp, at the end of RemoveChild(),
if (bDelete) delete removeThis;
return true;
----- So now I can remove the link of an xml element and then use it in some elsewhere.
Log in to post a comment.
In TiXmlNode, tinyxml.h
change
bool RemoveChild( TiXmlNode* removeThis );
to
bool RemoveChild( TiXmlNode* removeThis, bool bDelete = true );
and at tinyxml.cpp, at the end of RemoveChild(),
if (bDelete)
delete removeThis;
return true;
-----
So now I can remove the link of an xml element and then use it in some elsewhere.