Help for this page

Select Code to Download


  1. or download this
    <document>
     <product>
    ...
      <color></color>
     </product>
    </document>
    
  2. or download this
    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; }
    
  3. or download this
    my $field= 'content';
                                                
    ...
      { my( $twig, $field)= @_;                      
        $field->delete;    
      }