Why not, I have some time. Send my IP in priv.
And add xmlSaveFile after ending a loop, not inside. Should look like this
local teamName = getTeamName(team)
local xmlFile = xmlLoadFile("teams.xml")
local children = xmlNodeGetChildren(xmlFile)
for i,node in pairs(children) do
local attribute = xmlNodeGetAttribute(node, "name")
if attribute == teamName then
xmlDestroyNode(node)
end
end
xmlSaveFile(xmlFile)