Skip to content
Advertisement

Is EclipseLink MOXy suitable for ridiculously huge XML files?

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?

Advertisement

Answer

Note: I’m the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.

Whenever possible EclipseLink JAXB (MOXy) leverages a StAX XMLStreamReader to process the XML input. This means the document is never held in memory.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement