I wonder if there is a standard way to digitally sign XML files.\n\n1. where do you put the signature, the public key? Can you tack them\non the end, embed them in special tags?\n\n2. what do you sign, the encoded bytes or the chars?\n\n3. how do you deal with transient white space that might disappear if\nsomeone tidied the file.\n\n4. how do you deal with platform-specific new line chars? do you\ntreat them as if nl, do you transform the document first, do you\npreserve them?\n\n5. what about lead trail space on fields. It this removed first?