Help for this page
<document> <product> ... <color></color> </product> </document>
XML::Twig->new( twig_roots => { content => \&content }, twig_print_out +side_roots => 1, keep_spaces => 1, ) ->parsefile( 'ginormous.xml'); ... $content->set_cdata($snipped); $t->flush; }
my $field= 'content'; ... { my( $twig, $field)= @_; $field->delete; }