OCaml 32bits memory limit

I haven’t worked with XML in years, and when I did, I wrote my own parsers, so I cant’ point at particular software. @ttamttam has made some suggestions. More generally, there are (for XML) DOM parsers and streaming parsers. You want the latter.

This is (or was) a very active area of development for Java, so you might find good reading material in the Java world.