从 MVC Controller 返回 XML 数据的最佳方式是什么? 我正在使用 Visual Studio 2015。我试过这个但没有用:
return new XmlResult(s);
最佳答案
return this.Content(xmlString, "text/xml", System.Text.Encoding.UTF8);
关于c# - 从 MVC Controller 返回 XML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50409842/