如何在 JavaScript 中规范化 XML?

发布于 2025-01-05 22:49:58 字数 202 浏览 2 评论 0原文

是否有用于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沫离伤花 2025-01-12 22:49:58

据我所知,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

余厌 2025-01-12 22:49:58

您可以使用 xml-crypto 在 javascript / NodeJS 中对 XML 进行签名。

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

梦醒灬来后我 2025-01-12 22:49:58

看起来现在有一个专用的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文