Kizspy | Question: 17
(Choose 1 answer)
How can you return an XML response from an action method in ASP.NET Core Web API?
A. By using the [XmlResult] attribute on the action method.
B. By manually serializing the data to XML format using an XmlSerializer.
C. By returning an ObjectResult with the desired data and specifying the response format as XML.
D. By configuring the media types in the Startup class.