use warnings; use strict; use XML::Twig; my $xmlstr = '<XML> <TestElement>Hello</TestElement> </XML>'; my $twig = XML::Twig->new(twig_handlers => {'XML/TestElement' => sub { +$_->set_text('Bye')} }); $twig->parse($xmlstr); $twig->print(); __END__ <XML> <TestElement>Bye</TestElement> </XML>
In reply to Re: Modify XML
by toolic
in thread Modify XML
by perl@1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |