in reply to XML::Twig ignore_elts
As Tanktalus mentioned, you cannot use ignore_elt for this.
An other way to do this is to set a twig handler on 'title/title/title' that will just return 0, this will prevent the handler on title to be run:
my $twig = XML::Twig->new( twig_handlers => { $ign => sub { return 0}, $sel => \&title, },
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Twig ignore_elts
by anniyan (Monk) on Nov 19, 2005 at 06:56 UTC |