Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Replacing things in XML files

by borisz (Canon)
on Apr 26, 2006 at 20:38 UTC ( [id://545871]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Replacing things in XML files
in thread Replacing things in XML files

use strict; use XML::Twig; local $/; XML::Twig->new( TwigHandlers => { '/root/msg' => sub { $_[1]->set_text('Twig is easy') } } )->parse(<DATA>)->print; __DATA__ <?xml version="1.0" encoding="iso-8859-1"?> <root><msg>As a last resort XML::LibXML is also useful.</msg></root>
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found