John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
But now I have a good reason. I want to change one value in an XML file, but not confuse the version control system. When I look at the deltas in git, I want to clearly see that one value changed, not have it tell me that the whole file is totally different, or that the file only has one (enormously long) line.
I'm only changing one value in an XML file that I normally just read, and that's created by the user in-person. So is there some kind of filter approach that will let me update one value while preserving everything, even whitespace, in the file otherwise?
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Updating XML while preserving formatting
by Your Mother (Archbishop) on May 07, 2009 at 17:37 UTC | |
by John M. Dlugosz (Monsignor) on May 08, 2009 at 15:00 UTC | |
|
Re: Updating XML while preserving formatting
by mirod (Canon) on May 08, 2009 at 04:34 UTC |