I have xml file with .xls style. How Can I display it on my mvc view (razor)?
Localization file: @"D:\Result22.xml"
You can use this
XmlDocument doc = new XmlDocument();
doc.LoadXml(input);
If you prefer you can instead make the content type change from your view action, like so
public ActionResult MyAction() {
Response.ContentType = "text/xml";
return View();
}
OR
You can use an XSLT to convert your XML into XHTML and then display that.