ASP.NET MVC XML Action Result

For my Location Service in F# I needed a way to be able to return XML from MVC (which powers my site), but I couldn’t find a way to do this out of the box with XML.
Luckily creating your very own ActionResult is really quite easy in MVC.
First yo…

For my Location Service in F# I needed a way to be able to return XML from MVC (which powers my site), but I couldn’t find a way to do this out of the box with XML. Luckily creating your very own ActionResult is really quite easy in MVC. First you need to implement the ActionResult class: public class XmlActionResult : ActionResult { public override void ExecuteResult(ControllerContext context) { } } I’m going to add a couple of public properties:
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: