I have an xml file and I would like to change a value of one of it's nodes, which I have done using:
I need to keep the file so I used the above line on a copy of the original file.
This seems to work fine (as a System.out during run-time indicates the value has indeed changed - using 'getNodeValue') , but when I look at the second file after the program has exectued the value is exactly the same as the value in the original first - it hasn't changed.
Is this a file I/O issue or something to do with XML?
Does anyone have any ideas how I could permanently change the value?
I really need to get this problem sorted so any help you could provide would be much appreciated.