Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.88k stars 602 forks source link

[Feature Request] Updating Status #513

Closed deeyonn closed 2 years ago

deeyonn commented 5 years ago

Hello, I use xml2js.Parser() on some of my xml files that are 500MB, and it takes a good 60 seconds for the process to complete. Is it possible to add a feature like a callback function I can give so that it updates on its status every few or so % parsed?

Leonidas-from-XIV commented 5 years ago

I theory it could send some kind of updates (since it is based on a SAX parser) but it can't tell you how many % since it doesn't know how many items will still come in the future.

paul-uz commented 2 years ago

This is something that would be really useful to me as well.

Would you be able to calculate an estimate and refine it over time?

paul-uz commented 2 years ago

@deeyonn why did you close this? Did you figure out how to achieve what you wanted?

deeyonn commented 2 years ago

@deeyonn why did you close this? Did you figure out how to achieve what you wanted?

Nope it's been 3 years and I've long moved on

paul-uz commented 2 years ago

@deeyonn why did you close this? Did you figure out how to achieve what you wanted?

Nope it's been 3 years and I've long moved on

What are you using now?

deeyonn commented 2 years ago

@deeyonn why did you close this? Did you figure out how to achieve what you wanted?

Nope it's been 3 years and I've long moved on

What are you using now?

Nothing, I've just stopped working with 500MB files and moved on with life

paul-uz commented 2 years ago

@deeyonn why did you close this? Did you figure out how to achieve what you wanted?

Nope it's been 3 years and I've long moved on

What are you using now?

Nothing, I've just stopped working with 500MB files and moved on with life

I see. Well good luck!