Пример #1
0
	void
	DeleteChild(wxXmlNode& node, const wxString& name)
	{
		wxXmlNode *child = FindChild(node, name);
		if (child != NULL)
		{
			node.RemoveChild(child);
			DESTROY(child);
		}
	}
Пример #2
0
	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();
		}
	}