I\'m trying to digitally sign an XML document using Java. I\'ve got an implementation working with some references I\'ve found that use various implementations in the javax.xml.
I looked at all of the options for signing XML files and decided to go with a non-standard approach. The standards were all way too verbose. Also, I didn't need compatibility with the standards---I just needed signatures on a block of XML.
Probably the easiest way to "sign" a block of XML is to use GPG with a detached signature.