Please note,
I have an XML
file which contains such information to display into User. And I have got the XSL
file which contains the style information of the Content to display.
I wrote the following action in my controller to return the View which contains the XML
file contents.
public ActionResult GetError()
{
XmlDocument xdoc=GetXMLError();
return View(xdoc);
}
[#GetError.cshtml]
@model System.Xml.XmlDocument
@MvcHtmlString.Create(Model.InnerXml).ToHtmlString()
But the Screen renders the xml what it has retrieved as a String not a HTML String. Which means its printing the xml what I sent.
I have also included the XSL file in Corresponding View Folder.
I have no clue of further proceedings.
Could anyone help me to resolve this out to Render the XML in specified style format?