Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: XML Parser not well-formed

by existem (Sexton)
on Nov 02, 2004 at 18:05 UTC ( [id://404697]=note: print w/replies, xml ) Need Help??


in reply to XML Parser not well-formed

Along the same lines, I seem to be having a problem with loading up very large XML files into memory. The entire file contains in the region of 500 elements like the one described above, however my script seems to hang half way through loading it up with XMLin.

I have tried to dump out the result after loading it up but get truncated result.

Is there a limit to the size of the XML file I can load up?

Thanks,
Tom

Replies are listed 'Best First'.
Re^2: XML Parser not well-formed
by mirod (Canon) on Nov 03, 2004 at 14:44 UTC

    The limit is function of the amount of memory you have on your system.

    <plug type="shameless">If the whole document doesn't fit in memory, you can play with XML::Twig to load parts of it, process them and then free the memory before processing the next chunk. And of course, if you are used to XML::Simple interface, you can use the simplify method on any element to get the same structure that XMLin would have given you.</plug>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found