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>