in reply to Re: XML-Twig: more efficient tree processing
in thread XML-Twig: more efficient tree processing
Here's the nutshell version of what the code does:
my $twig = new XML::Twig ( TwigRoots => { 'tables/table' => \&processColum +ns, 'views/view' => \&processColumns + } ); $twig->parsefile($SCHEMAS); $twig->dispose; sub processColumns () { my( $twig, $tableTwig ) = @_; my @colList = $tableTwig->find_nodes ("columns/column"); foreach $x (@colList) { blah; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: XML-Twig: more efficient tree processing
by mirod (Canon) on Aug 07, 2012 at 18:58 UTC | |
by zuma53 (Beadle) on Aug 08, 2012 at 02:16 UTC | |
by Anonymous Monk on Aug 08, 2012 at 03:04 UTC |