Created
January 5, 2020 07:39
-
-
Save SumindaD/91d624cac41ad608c475785946a51553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Remove the Signature from signed XML document | |
/// </summary> | |
/// <param name="xmlFilePath">Path to the signed xml document</param> | |
/// <returns>The unsigned xml document</returns> | |
private static XmlDocument UnsignXMLDocument(string xmlFilePath) | |
{ | |
var xmlDocument = ReadXMLDocumentFromPath(xmlFilePath); | |
var nodeList = xmlDocument.GetElementsByTagName("Signature"); | |
xmlDocument.DocumentElement.RemoveChild(nodeList[0]); | |
return xmlDocument; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment