in reply to Replacing XML Tag name with another
So where do you encounter problems?
- in step 1: opening the file?
- in step 2: reading the file line-by-line?
- in step 3: doing the replacements (using a regex-substitution s///g)?
- in step 4: writing the result?
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.
|
---|
In Section
Seekers of Perl Wisdom