Lets say I have TARGET_FILE.xml like below
After updating value of Member and writing it to same file using
TARGET_FILE_TREE.write(TARGET_FILE)
The overwritten file has no commented line as in original file, could you please help in tacking this issue
This is my main code:
for node in NvItemData_Nodes:
if node.attrib.get("id") == "5153":
print "yes"
print node.find('Member').text
node.find('Member').text = SVN
print node.find('Member').text
TARGET_FILE_TREE.write(TARGET_FILE)