Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: How to get paired values from the nested XML structure?

by Jenda (Abbot)
on Nov 02, 2011 at 09:42 UTC ( #935329=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to get paired values from the nested XML structure?
in thread How to get paired values from the nested XML structure?

If the file is huge you can process it in parts. In this case and with XML::Rules it would mean that the rule for <unit> would be a subroutine that inserts the data of the unit to database and then returns nothing. That way you do not keep the already processed data in memory.

Another good module for processing huge XML files is XML::Twig.

Jenda
Enoch was right!
Enjoy the last years of Rome.


Comment on Re^3: How to get paired values from the nested XML structure?
Re^4: How to get paired values from the nested XML structure?
by vagabonding electron (Hermit) on Nov 03, 2011 at 16:01 UTC
    Thank you Jenda, I will certainly try it too.
    The Module XML::Twig is also available for ActivePerl - great!(and btw. it is the real blessing to be able to install ppm modules manually, without administrator privileges and without proxy issue).
    Many thanks!
    VE

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-09-30 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (386 votes), past polls