How to return large XML tree structure without storing file in memory?
===

I have a number of large XML files that will need to be built into a new DB structure. Without manually going through the file and finding each individual node type, is there a way to return the XML tree structure?

Also, since these files  are large (ranging from 500mb to 5gb), I can't open the files in memory. They will need to be scanned through instead.

I know DOMDocument can get a tree structure pretty easily, but it wouldn't be able to load these files into memory.