phporcaffeine Posted December 13, 2008 Share Posted December 13, 2008 I have an XML file with 800,000 nodes. I have a script that loads, reads and parses the file (it places all the XML node into a stack) however 800,000 nodes is to much and it causes PHP to hit a memory limit. I have bumped up mem_limimt all the way to 700M but no luck. Is there a max to the size of a stack and if so does anyone have a way around this? The goal is to load all nodes and then apply a simple sort() function. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/136868-xml-parsing-problem/ Share on other sites More sharing options...
Mark Baker Posted December 14, 2008 Share Posted December 14, 2008 I assume by stack you mean an array Why not try sorting the xml using xpath instead? Link to comment https://forums.phpfreaks.com/topic/136868-xml-parsing-problem/#findComment-715101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.