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


in reply to Replacing XML Tag name with another

So where do you encounter problems?

update: hint: For such simple replacements, treating the XML-file as a text-file is probably fine. However if you want more complex transformations, a using a CPAN-module (e.g. XML::Simple) is a much better choice.