zacc has asked for the wisdom of the Perl Monks concerning the following question:
The first handler fires, but not the second. Doesn't matter which way round the handlers are listed - if MEMBER is first, then that fires - but ACCOUNT doesn't; if ACCOUNT is first, then that fires - but MEMBER doesn't.my $infile= XML::Twig->new( twig_roots => { 'MEMBER' => 1, 'ACCOUN +T' => 1 }, twig_handlers => { 'MEMBER' => \&process_member, 'ACCOUNT' + => \&process_account }, keep_encoding => 1, ); $infile->safe_parsefile( $incomingFilename );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: More XML-Twig
by mirod (Canon) on Jan 08, 2008 at 15:38 UTC | |
by zacc (Novice) on Jan 08, 2008 at 15:50 UTC | |
|
Re: More XML-Twig
by Jenda (Abbot) on Jan 09, 2008 at 12:26 UTC |