Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. XmlDiffView dv = new XmlDiffView();
  2. //Load the original file again and the diff file.
  3. XmlTextReader orig = new XmlTextReader(oldXML);
  4. XmlTextReader diffGram = new XmlTextReader(diffXML);
  5. dv.Load(orig,
  6. diffGram);
  7.  
  8. //Wrap the HTML file with necessary html and
  9. //body tags and prepare it before passing it to the GetHtml method.
  10.  
  11. string tempFile = @"C:UsersABCDesktopdiffView.html";
  12. StreamWriter sw1 = new StreamWriter(tempFile);
  13. sw1.Write("<html><body><table width='100%'>");
  14.  
  15.  
  16. dv.GetHtml(sw1);
  17. sw1.Write("</table></body></html>");
  18. sw1.Close();
  19. dv = null;
  20. orig.Close();
  21. diffGram.Close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement