I\'d like to return some XML instead of HTML in my WebMatrix cshtml file? How do you change the content type header?
If you are using ASP.NET MVC, you can choose to make the change in your action method in the controller, like so:
public ActionResult MyAction() { Response.ContentType = "text/xml"; return View(); }