2

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)?

Boy Baukema
  • 2,908
  • 1
  • 27
  • 38
Anatoliy
  • 29,485
  • 5
  • 46
  • 45

3 Answers3

0

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

Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
0

Looks like now there's a dedicated npm package for this: https://www.npmjs.com/package/xml-c14n

0

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

Boy Baukema
  • 2,908
  • 1
  • 27
  • 38