All the examples on the internet shows the usage of the XmlDsigEnvelopedSignatureTransform class as a part of the SignedXml class.
I would like to use this class by itself. Just give it a nodeList get the result without the signature node.
XmlDsigEnvelopedSignatureTransform envSigTrans = new XmlDsigEnvelopedSignatureTransform();
envSigTrans.LoadInput(xmlDocument.DocumentElement.SelectNodes("//*"));
XmlNodeList nodeList = (XmlNodeList)envSigTrans.GetOutput(typeof(XmlNodeList));
But the output nodeList still contains the ds:Signature node I would like to get rid of.
What is the correct way of doing this? Your help is very appreciated.