My latest struggle is attempting to parse a HUGE XML file (about 10M. Using PHP usually times-out or runs out of memory just opening the file. Heck, I can’t even open it with a text editor without a huge wait. I was wondering if you had any advice on what language or method I could use to do this. Basically, I need to be able to make quick searches of this XML info and retrieve the matched records. The file changes often and I need to retrieve it from and FTP server every few days, so converting it into a mySQL database didn’t seem practical (maybe I’m wrong). Ideally, this all has to happen on my web server (I think).
Maybe PHP is not the right solution here. If not, another server-side solution?
Any ideas? I not necessarily looking for code but just point me in the right direction (like “xyz scripting language can parse through that xml data fast...” Or “this php function will do it...”)
I've found xquery Lite but without downloading it, installing it, learning it and running it, I can't be sure this can handle a 10MB XML file.