Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I am trying to import a signed xml document into another xml document. When i import the document, and export it with no change, i can no longer validate it.

Even the code below breaks the validation.

C#
OpenFileDialog ofd = new OpenFileDialog();
ofd.ShowDialog();

if (ofd.FileName != "")
{
   XmlDocument XmlDocument = new XmlDocument();
   XmlDocument.Load(ofd.FileName);

   FolderBrowserDialog fbd = new FolderBrowserDialog();
   fbd.ShowDialog();

   if (fbd.SelectedPath != "")
   {
      XmlDocument.Save(fbd.SelectedPath + @"\Doc.xml");
   }
}

How can i import/export an xml document without breaking the validation?
Posted
Updated 30-May-14 22:48pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900