Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my $parser = XML::Twig -> new ( 'twig_handlers' => { 'error' => \&prin
    +t_error } );
    $parser -> parse ( $XML );
    
  2. or download this
    sub process_all_errors
    {
    ...
    
    my $other_parser = XML::Twig -> new ( 'twig_handlers' => { 'errors' =>
    + \&process_all_errors } );
    $other_parser -> parse ( $XML );