title: ASP.NET MVC and text/xml content type
body: <p>I want to return a View() from an action, and the resulting response should have a content type of text/xml instead of the default text/html.</p>
  
  <p>I have tried the following, with no success:</p>
  
  <pre><code>Response.ContentType = "text/xml"; 
  return View();
  </code></pre>
  
  <p>I know that you can specify the content type by returning <code>ContentResult</code>, but that doesn't render my View.</p>
  
  <p>I'm hoping I don't need to render the view to a string then use <code>return Content()</code>, so I'm probably overlooking some easy way.</p>