in reply to How to Parse Huge XML Files ?

You might want to take a look at my article that compares SAX and Twig. In my large-file test, SAX and Twig were close in each other in performance, at least in terms of speed. The testing included improvements to the code suggested by matts, mirod, and barries. My code ended up being a lot faster when I was done than it was when I started!

It should work perfectly the first time! - toma