Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928070]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-08-21 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (317 votes). Check out past polls.

    Notices?