using System.Net.Mime; using Microsoft.AspNetCore.Mvc.Formatters; namespace Jellyfin.Api.Formatters; /// /// Xml output formatter. /// public sealed class XmlOutputFormatter : StringOutputFormatter { /// /// Initializes a new instance of the class. /// public XmlOutputFormatter() { SupportedMediaTypes.Clear(); SupportedMediaTypes.Add(MediaTypeNames.Text.Xml); } }