Help for this page

Select Code to Download


  1. or download this
    <result>
      <target type="aim">
    ...
        ...
      </target>
    </result>
    
  2. or download this
    my $twig = new XML::Twig(twig_handlers =>
    {
      "/result/target/tag[1-3]" => \&my_parsing_function,
    });
    
  3. or download this
    my $twig = new XML::Twig(twig_handlers =>
    {
      "/result/target/tag[self::1 or self::2 or self::3]" => \&my_parsing_
    +function
    });