Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Replacing XML Tag name with another

by Ratazong (Monsignor)
on Sep 27, 2011 at 11:43 UTC ( #928070=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928070]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2016-10-28 16:24 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (386 votes). Check out past polls.