How to generate canonicalized string of a XML string
Hello,
We have a requirement to canonicalize an XML string generated out of a Pega Map-Form rule and create a digest value out of it.
Generating digest is possible in pega using "tools.getPRCrypto().digestString(<<UnhashedString>>, com.pega.pegarules.pub.crypto.IPRCrypto.DigestAlgorithm.SHA256)" but we are unable to find any way to canonicalize the xml string first.
Anyone of you used or know how to canonicalize the XML string ?
the required algorithm needs to be http://www.w3.org/2001/10/xml-exc-c14n#
Thanks in advance for your suggestions
***Edited by Moderator Marije to remove S.I. tag as requested by SME***