Return XML from a controller’s action in as an ActionResult?

return this.Content(xmlString, "text/xml");

Leave a Comment