I can read and format an XML file and show in in View.
But I cant find any reference how can I just pick the XML file from a URL and display it as it is (an XML) without formatting. I just want to view the file from my site.
I just need to view the schema. For some reason I cant view the file in my home computer and only my host IP cant access the file.
Im looking for something like this:
public ActionResult ViewXMLFile()
{
Response.ContentType = "text/xml";
XmlDocument doc = new XmlDocument();
doc.Load(xmlPath_here);
[then return a view displaying the XML as is]
}