var xml = GlobalConfiguration.Configuration.Formatters.XmlFormatter; // Use XmlSerializer for instances of type "Product": xml.SetSerializer(new XmlSerializer(typeof(Product)));