在node.js中将xml转换为json

时间:2021-10-23 14:52:00

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

请问,请指点我为node.js做一些工作的xml - > json翻译库吗?

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

当xml文件仍在接收时,SAX样式将更好地完成任务。

Thanks

谢谢

3 个解决方案

#1


5  

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

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

#2


4  

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".

你可以试试xml2js。我自己尝试过,但是对于非常简单的xml,所以我不确定它是否能够“在xml文件仍在接收时”。

#3


0  

http://code.google.com/p/x2js But it working with DOM.

http://code.google.com/p/x2js但它与DOM合作。

#1


5  

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

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

#2


4  

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".

你可以试试xml2js。我自己尝试过,但是对于非常简单的xml,所以我不确定它是否能够“在xml文件仍在接收时”。

#3


0  

http://code.google.com/p/x2js But it working with DOM.

http://code.google.com/p/x2js但它与DOM合作。