|
I would like to write something like this:
my $twig=XML::Twig->new(
twig_handlers => {
'/tag1[@att1="morgo"]/tag2[@att2="korgo"]' => \&process_key,
},
);
that is, to define a path using both tag names and attribute values on several levels.
(Sometimes 5-10 levels!)
I played a bit with Twig but as I can see providing attribute definition can only be done with
one tag.
'tag2[@att2="korgo"]' => \&process_key,
Is this the situation or am I missing something?
How can I define such a detailed path?
|