How to replace the two last digits from an xml file?
albert.wellens at gmail.com
Fri Mar 6 20:53:21 CET 2009
I am trying to get a value from an xml file, increment it by 1,
replace by the new value and write another xml with the new value
I have found this code to get the line and it works but I have to do
lines = open("c:\\File1.xml").readlines()
for i in range(len(lines)):
if re.search('national.number', lines[i]):
lines[i] = lines[i].replace
The goal I am trying to reach is to create 30 different xml.
Could someone help me?
More information about the Python-list