Out of memory error with simplexml in PHP.?

jumpingrightin

New member
I'm parsing a very large XML file in PHP using simplexml. Like this:
$xml = simplexml_load_file('bigfile.xml');
I know I could increase memory in /etc/php.ini, but isn't there a way to open bigfile.xml and read in a buffer of about 8-16k at a time (around the size of each XML line) and then parse it with XML? Is there a simplexml routine for simply doing a line at a time? Thanks!
 
Back
Top