It crashes with memory errors on files that are too large. I'll have to switch to reading the .xml files from "all at once" mode to serially.