Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: libxml - insert node

by choroba (Cardinal)
on Feb 14, 2012 at 11:24 UTC ( [id://953681]=note: print w/replies, xml ) Need Help??


in reply to libxml - insert node

I usually use XML::XSH2 for XML manipulation. In this case, it can be used as follows:
open Office.xml ; my $new := insert element IP into //node[label="Office"]/node[label="1 +st Floor"] ; set $new/text() '10.1.1.1' ; save :b ;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found