I\'d like to return some XML instead of HTML in my WebMatrix cshtml file? How do you change the content type header?
At the top of your Razor file, set the ContentType of the Response object:
@{ Response.ContentType = "application/xml"; } ... xml here ...