Since in-place edits are quite error prone, I'd suggest to write a copy with the updated content, and then delete the original and rename the copy.
In reply to Re: update a value in xml file
by moritz
in thread update a value in xml file
by amvarma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |