---Update 3: I have got the script to update the required data into the xml files completed but the following code is being dropped from the written file. Why is this? how c
I might be stating the obvious here, but did you consider using a DOM tree to parse and manipulate your XML?