Using Xpath With Default Namespace in C# for Canonicalisation
问题 I'm trying to apply the C14N transform to some generated XML. It appears I can't use LINQ to retrieve the nodes to perform the canonicalisation so I have to go 'old school' with the DOM but I think I'm falling foul of the default namespace. Here is a sample of my code. static void Main(string[] args) { XmlDocument xDoc = new XmlDocument(); // Load some test xml string path = @"..\..\TestFiles\Test_1.xml"; if (File.Exists(path) == true) { xDoc.PreserveWhitespace = true; using (FileStream fs =