Наследование: System.Net.Http.Formatting.XmlMediaTypeFormatter
        protected override void Initialize(HttpControllerContext controllerContext)
        {
            base.Initialize(controllerContext);

            // The XSD code generator only creates one imsx_POXEnvelopeType which has the
            // imsx_POXEnvelopeRequest root element. The IMS spec says the root element
            // should be imsx_POXEnvelopeResponse in the response.

            // Remove the default XmlFormatter that does not know how to override the root element
            var xmlFormatter = controllerContext.Configuration.Formatters.XmlFormatter;

            controllerContext.Configuration.Formatters.Remove(xmlFormatter);

            // Replace the default XmlFormatter with one that overrides the response root element
            var imsxXmlFormatter = new ImsxXmlMediaTypeFormatter();

            controllerContext.Configuration.Formatters.Add(imsxXmlFormatter);
        }
        protected override void Initialize(HttpControllerContext controllerContext)
        {
            base.Initialize(controllerContext);

            // The XSD code generator only creates one imsx_POXEnvelopeType which has the
            // imsx_POXEnvelopeRequest root element. The IMS spec says the root element
            // should be imsx_POXEnvelopeResponse in the response.

            // Remove the default XmlFormatter that does not know how to override the root element
            var xmlFormatter = controllerContext.Configuration.Formatters.XmlFormatter;
            controllerContext.Configuration.Formatters.Remove(xmlFormatter);

            // Replace the default XmlFormatter with one that overrides the response root element
            var imsxXmlFormatter = new ImsxXmlMediaTypeFormatter();
            controllerContext.Configuration.Formatters.Add(imsxXmlFormatter);
        }