如何在JavaScript中规范化XML? [英] How to canonicalize XML in javascript?
本文介绍了如何在JavaScript中规范化XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在用于XML规范化的JavaScript库,并支持专有的XML规范化?
Is there a JavaScript library for XML canonicalization with support for Exclusive XML Canonicalization?
如果没有相应的库,我如何才能以最低的要求对Node.js库中的XML进行规范化(没有Ruby或Java)?
If there is no library for that, how can I canonicalize XML in a Node.js library with minimal requirements (no Ruby or Java)?
推荐答案
据我所知,尚无用于C14n的Node.js 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
这篇关于如何在JavaScript中规范化XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文