Open TianboJi opened 6 years ago
This plugin does not stream the file so the whole file is loaded into memory. Hence, the error you have. Solution: Stream your data
@aakashmalhotra is right, even though we use node-expat which parses the XML document in streaming, we don't stream the resulting JSON structure out of the function.
Isn't it a good idea to add an option to make it a stream?
@matthbo, yes, it would be useful with big documents. I just don’t currently have the bandwidth to do it :/. Although, I’m open to reviewing contributions!
I'm handling a 8G xml file. It's have the same problem for me. Hope it support streamable API in 2021
Hi @cangSDARM,
you can use if you are dealing with huge files https://github.com/astro/node-expat
@aakashmalhotra Thanks. I'll check that.
I have a 1.7GB xml file which is exported from FileMaker Pro. When I use this module to parse it, it returns
Is there any way to solve it? I already add the parameter "--max-old-space-size=4096" but it doesn't work