Completing unDigestReleaseXml() function. It is essentially the reverse of digest, and maybe most of the code could be shared.