I advice using a proper XML parser! They come in various flavors. XML::Simple jumps to mind. Or maybe even better XML::Twig as it probably doesn't end with replacing tags and you need to do other things with your xml file.
I advice against parsing the file line-by-line and apply some regexp. This type of solution easily breaks. Using a decent parser gives you a more "future proof" solution.
In reply to Re: Replacing XML Tag name with another
by dHarry
in thread Replacing XML Tag name with another
by sandy88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |