Given your desire to preserve indentation, comments etc, XML::Simple is definitely not what you want. I'd recommend XML-LibXML. This node compares the code required to complete various tasks using XML::Simple and XML::LibXML.
In reply to Re: Replacing things in XML files
by grantm
in thread Replacing things in XML files
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |