Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How can I replace a line (tag) in an XML file?

by choroba (Cardinal)
on Sep 29, 2011 at 08:23 UTC ( [id://928489]=note: print w/replies, xml ) Need Help??


in reply to How can I replace a line (tag) in an XML file?

I usually use XML::XSH2 for XML manipulation. In this case, this script would make it:
open test.xml ; set /students/student[id="002"]/gpa "B" ; save :b ;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-26 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found