I've a xml file, and I'm trying to add additional element to it.the xml has the next structure :\[code\]<root> <OldNode/></root>\[/code\]What I'm looking for is :\[code\]<root> <OldNode/> <NewNode/></root>\[/code\]but actually I'm getting next xml :\[code\]<root> <OldNode/></root><root> <OldNode/> <NewNode/></root>\[/code\]My code looks like that :\[code\]file = open("/tmp/" + executionID +".xml", 'a')xmlRoot = xml.parse("/tmp/" + executionID +".xml").getroot()child = xml.Element("NewNode")xmlRoot.append(child)xml.ElementTree(root).write(file)file.close()\[/code\]Thanks.