import xml.dom.minidom as m
doc = m.parse("simplexml.xml")
valeurs = doc.getElementsByTagName("firstname").item(0)
#element = doc.createElement("SessionDetaild")
#element=doc.createTextNode("33390")
valeurs.setAttribute("id","192")
#valeurs.appendChild(element)
doc.writexml(open("simplexml.xml","w"))


