CodeIgniter Forums
XMLReader - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: XMLReader (/showthread.php?tid=18229)



XMLReader - El Forum - 04-29-2009

[eluser]bapobap[/eluser]
Hi all,

I need to read large XML files and SimpleXML isn't cutting it anymore, loading the entire XML file into memory isn't working out for my application. I've read XMLReader is good to use as it is fast and not a memory hog as it doesn't load the entire file into memory.

I can't get my head around xmlreader though, I can't find any good examples of how to use it. I like the simplicity of simplexml and converting the entire file into an object I can loop through, is there anything I can do to use xmlreader in the same or a similar way?

Thanks if you have any tips!