Currently, the alternative way of adding XML support as suggested https://docs.microsoft.com/en-us/aspnet/core/web-api/advanced/formatting?view=aspnetcore-2.2#adding-xml-format-support, will cause the ProblemDetails and ValidationProblemDetails to be serialized incorrectly because they are only wrapped correctly when you call .AddXmlSerializerFormatters(); as I found out when I reported the issue as a bug https://github.com/aspnet/AspNetCore/issues/7715
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@kingmotley thanks for reporting this. Would you be able to provide the first draft of updating this doc?
@pranavkm do you agree we should update this doc with the instructions you provided in https://github.com/aspnet/AspNetCore/issues/7715?
Yeah. Removing the alternatives would be the way to go.
nice

Most helpful comment
nice