John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
But it would be far better to actually parse the XML correctly, look up the item in the document model, change it, and then re-save the file.
So, what about the original formatting of the file? I want to keep the comments, indents and line breaks from the original, making a minimal change.
What's the normal idiom for that?
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replacing things in XML files
by borisz (Canon) on Apr 26, 2006 at 19:23 UTC | |
by derby (Abbot) on Apr 26, 2006 at 20:08 UTC | |
by borisz (Canon) on Apr 26, 2006 at 20:38 UTC | |
|
Re: Replacing things in XML files
by davido (Cardinal) on Apr 26, 2006 at 20:26 UTC | |
|
Re: Replacing things in XML files
by osunderdog (Deacon) on Apr 26, 2006 at 19:18 UTC | |
by John M. Dlugosz (Monsignor) on Apr 27, 2006 at 18:31 UTC | |
by osunderdog (Deacon) on Apr 27, 2006 at 20:46 UTC | |
|
Re: Replacing things in XML files
by jhourcle (Prior) on Apr 27, 2006 at 19:06 UTC | |
|
Re: Replacing things in XML files
by grantm (Parson) on Apr 28, 2006 at 21:10 UTC |