http://www.perlmonks.org?node_id=928460


in reply to How can I replace a line (tag) in an XML file?

This sounds like a good application for XML::XPath. Most of my XML parsing experience has been with XML::Simple's event based parsing, though.