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