troubleshooting Question

permanently change a file

Avatar of LFC1980
LFC1980 asked on
Programming Languages-Other
6 Comments1 Solution487 ViewsLast Modified:

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.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros