# XML Security Library: Canonical XML / Exclusive Canonical XML

Both [XML Signature](http://www.w3.org/TR/xmldsig-core) and
[XML Encryption](http://www.w3.org/TR/xmlenc-core/) use XML Canonicalization
standards to produce canonical form of the original XML document. Except for
limitations regarding a few unusual cases, if two documents have the same
canonical form, then the two documents are logically equivalent within the
given application context. Implementation of both these standards were included
in LibXML2 library because these algorithms could be interested for other
applications as well.

- [Canonical XML 1.0](http://www.w3.org/TR/xml-c14n) (included in LibXML2 library)
- [Exclusive Canonical XML 1.0](http://www.w3.org/TR/xml-exc-c14n) (included in LibXML2 library)
- [Canonical XML 1.1](http://www.w3.org/TR/xml-c14n11/) (included in LibXML2 library)

