How to canonicalize XML in javascript?

时间秒杀一切 提交于 2019-12-24 11:21:54

问题


Is there a JavaScript library for XML canonicalization with support for Exclusive XML Canonicalization?

If there is no library for that, how can I canonicalize XML in a Node.js library with minimal requirements (no Ruby or Java)?


回答1:


As far as I know there are no XML libraries for Node.js that do C14n yet, I looked at this a while back and the easiest route seemed to be to add the functionality to the libxml library: https://github.com/polotek/libxmljs




回答2:


You an use xml-crypto to sign XML in javascript / NodeJS.



来源:https://stackoverflow.com/questions/9308169/how-to-canonicalize-xml-in-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!