Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
more useful options
 
PerlMonks  

Re^2: XML-Twig: more efficient tree processing

by zuma53 (Beadle)
on Aug 07, 2012 at 17:59 UTC ( #986048=note: print w/ replies, xml ) Need Help??


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; } }


Comment on Re^2: XML-Twig: more efficient tree processing
Download Code
Re^3: XML-Twig: more efficient tree processing
by mirod (Canon) on Aug 07, 2012 at 18:58 UTC
    Do you have a $twig_.purge at the end of processColumns?

      For what I am doing, I am pretty much done with the processing once I hit the end of processColumns.

      Is there a way to free up things while I am in the processColumns loop?

        Yeah, purge any nodes you want to get rid of

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986048]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2014-04-23 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (552 votes), past polls