I am looking for a working sample in vb.net or c# that will sign an xml document with a digital signature. The MSDN examples are close to what i need but i need an enveloping signature and i also need to sign it with a certificate. I have a certificate and a sample xml file but am having trouble getting it to work. I need a little windows form app built that will do this. I do need it as quickly as possible, within the next couple of days.