Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Minor change to enhance tinxyxml flexibility

Jack Chu
2008-12-24
2013-05-20
  • Jack Chu
    Jack Chu
    2008-12-24

    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.