XML Signature element is not declared
I created XSD using Visual StudioXML Tools. And I use following C# code to validate XML and facing this error. Error The element is not declared ' http://www.w3.org/2000/09/xmldsig#:Signature '. So my question is how to fix it because in edit mode XML is valid 100%? Thank you! C# private void buttonValidateXML_Click(object sender, EventArgs e) { try { bool result = IsValidXml2(textBoxSignedXML.Text, textBoxXSDFile.Text, ""); rtbValidationResult.Text = result.ToString(); } catch (Exception ex) { rtbValidationResult.Text = ex.Message; } } public static bool IsValidXml2(string xmlFilePath, string