canonicalize
Produces a deterministic canonical XML string for node.
This is intended for comparisons and test oracles. It currently focuses on stable attribute ordering and deterministic serialization of the DOM surface.
Parameters
node | Node to canonicalize. |
options | Canonicalization options. |
Returns
Canonical XML string.