Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?
[Discipulus]: amitkumarj441 more atention you put asking, more attentio you got in answers
Discipulus 's hoping he needs a oneliner ;=)
VinsWorldcom takes a cookie from the platter on the sideboard.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-04-26 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (488 votes). Check out past polls.