I have an ASP.NET Core 3.1 service project.
I have added a custom XmlSerializerOutputFormatter class as follows:
public class XmlSerializerOutputFo