I have an xml where I modified the data of a specific tag. Now I just want to save the xml so that it is modified. I hardly know about python, so any advice, welcome. This was the code I used to modify the tag:
from lxml import etree
doc = etree.parse('archivo.XML')
etiqueta_raiz = doc.getroot()
for etiqueta_secundaria in etiqueta_raiz:
for item in etiqueta_secundaria:
monto = float(etiqueta_secundaria[6].text) / 100000
monto = str(monto)
etiqueta_secundaria[6].text = monto
print etiqueta_secundaria[6].text