This is taken from XMLCanonicalizer/WSS4R and http://github.com/borisnadion/xml-canonicalizer
Andrew Ferk
gem "xmlcanonicalizer", "~> 0.1.2"