I’ve spent some enjoyable time with EclipseLink MOXy, figuring out the best way to parse XML into POJOs within Spring. I’ve now been given some XML to parse, and the files go up to a quite unbelievably 750MiB in size.
Does EclipseLink MOXy use streaming tech underneath, or will it try to hold the whole document in memory?
Whenever possible EclipseLink JAXB (MOXy) leverages a StAX
XMLStreamReader to process the XML input. This means the document is never held in memory.