Exemplo n.º 1
0
	void
	DeleteAttribute(wxXmlNode& node, const wxString& name)
	{
		wxXmlProperty *prop = node.GetProperties();
		wxXmlProperty *prev = NULL;
		while (prop != NULL)
		{
			if (prop->GetName() == name)
			{
				if (prev == NULL)
				{
					node.SetProperties(prop->GetNext());
				}
				else
				{
					prev->SetNext(prop->GetNext());
				}
				DESTROY(prop);
				return;
			}
			prop = prop->GetNext();
		}
	}