Namespace Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml
Assembly: Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml.dll
Register XML formatters for ASP.NET Core MVC with the same flexibility as the JSON equivalent from Newtonsoft. Use this namespace when you need XML serialization formatters in your MVC pipeline. Start with AddXmlFormatters on IMvcBuilder or IMvcCoreBuilder to enable XML formatters for your controllers.
Availability: .NET 10 and .NET 9
Complements: Cuemon.Extensions.Xml namespace 📘
Extension Members
| Type | Ext | Methods |
|---|---|---|
| HttpExceptionDescriptorResponseHandler | ⬇️ | AddXmlResponseHandler |
| IMvcBuilder | ⬇️ | AddXmlFormatters, AddXmlFormattersOptions |
| IMvcCoreBuilder | ⬇️ | AddXmlFormatters, AddXmlFormattersOptions |
Classes
MvcBuilderExtensions
Extension methods for the IMvcBuilder interface.
MvcCoreBuilderExtensions
Extension methods for the IMvcCoreBuilder interface.
XmlSerializationInputFormatter
This class handles deserialization of XML to objects using XmlFormatter.
XmlSerializationMvcOptionsSetup
A ConfigureOptions<TOptions> implementation which will add the XML serializer formatters to MvcOptions.
XmlSerializationOutputFormatter
This class handles serialization of objects to XML using XmlFormatter.