How to handle very large XML file (StAX / SAX / pull parser)?

1
Hi guys   I had a zip, when unzipping, it is around 350 mb xml file. When trying to capture that in a string, the app crashes as expected. I am wondering what the best way is to partially parse this xml file to my domain. I read about StAX/SAX pull parsers, has anyone did a similar job ? How can I do this the best? thanks
asked
1 answers
0

Hi Enzo,

Did passing the XML document to the import mapping not work either? The documentation says you can pass a string, file document, or an Http request.

 

The documentation also has a good example on how to do an import from a file.

https://docs.mendix.com/howto/integration/importing-xml-documents

answered