Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

translate xml to json in node.js

could you, please, point me to some working xml -> json translation library for node.js?

A SAX-styled would be preferable to get things done while the xml file is still receiving.

Thanks

like image 376
kalise Avatar asked Jan 08 '12 23:01

kalise


2 Answers

https://github.com/isaacs/sax-js

like image 142
fent Avatar answered Oct 01 '22 08:10

fent


You can try xml2js. I've tried it myself, but for really simple xml, so I'm not sure if it will work "while the xml file is still receiving".

like image 38
Aleksandar Vucetic Avatar answered Oct 01 '22 10:10

Aleksandar Vucetic