How to remove schema node in web api if return format is xml?
问题 I have a web api method that takes format as a parameter that provides returning both xml and json.The data type that method return is DataTable.In json format everything looks fine but in xml format the schema of datatable and some other attributes in xml nodes also returning.How to return simple xml that includes only data of datatable?Also, I am using QueryStringMapping in WebApiConfig. This is WebApiConfig Code public static void Register(HttpConfiguration config) { config