in reply to Re: XML Twig Handler Triggers Syntax
in thread XML Twig Handler Triggers Syntax

The Syntax that fixed the issue was  my $twig= new XML::Twig(TwigRoots => {'oa:ItemID[@agencyRole="Prefix_Number"]' => \&STOCKnumber, The code you provided produces a warning while using strict that an explicit declaration of package name is required for @agencyrole. I am still unable to extract the text of the child element though. Now Perl is claiming that my $Item is undefined.

Replies are listed 'Best First'.
Re^3: XML Twig Handler Triggers Syntax
by Jenda (Abbot) on Dec 26, 2007 at 21:59 UTC