Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XmlDiffView dv = new XmlDiffView();
- //Load the original file again and the diff file.
- XmlTextReader orig = new XmlTextReader(oldXML);
- XmlTextReader diffGram = new XmlTextReader(diffXML);
- dv.Load(orig,
- diffGram);
- //Wrap the HTML file with necessary html and
- //body tags and prepare it before passing it to the GetHtml method.
- string tempFile = @"C:UsersABCDesktopdiffView.html";
- StreamWriter sw1 = new StreamWriter(tempFile);
- sw1.Write("<html><body><table width='100%'>");
- dv.GetHtml(sw1);
- sw1.Write("</table></body></html>");
- sw1.Close();
- dv = null;
- orig.Close();
- diffGram.Close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement