HTMLCHECKERLib.XMLPProcessorClass xpp = new HTMLCHECKERLib.XMLPProcessorClass(); string Xhtmlstr = xpp.HTMLtoXHTML(System.IO.File.ReadAllText(@"d:\bala\info.xml")); System.IO.File.WriteAllText(@"d:\bala\newinfo1.html", Xhtmlstr);