如何在 JavaScript 中规范化 XML?
是否有用于 XML 规范化的 JavaScript 库,支持 独家 XML 规范化?
如果没有相应的库,我如何以最低的要求(没有 Ruby 或 Java)在 Node.js 库中规范化 XML?
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)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我所知,Node.js 还没有支持 C14n 的 XML 库,我不久前研究过这个问题,最简单的方法似乎是将功能添加到 libxml 库中:
https://github.com/polotek/libxmljs
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
您可以使用 xml-crypto 在 javascript / NodeJS 中对 XML 进行签名。
You an use xml-crypto to sign XML in javascript / NodeJS.
看起来现在有一个专用的 npm 包: https://www.npmjs.com/package /xml-c14n
Looks like now there's a dedicated npm package for this: https://www.npmjs.com/package/xml-c14n