Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: XML Parser not well-formed

by existem (Sexton)
on Nov 02, 2004 at 18:05 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-08-14 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?