void DeleteChild(wxXmlNode& node, const wxString& name) { wxXmlNode *child = FindChild(node, name); if (child != NULL) { node.RemoveChild(child); DESTROY(child); } }
void DeleteChild(wxXmlNode& node, wxXmlNodeType type) { wxXmlNode *child = node.GetChildren(); while (child != NULL) { if (child->GetType() == type) { node.RemoveChild(child); DESTROY(child); return; } child = child->GetNext(); } }