19.7 XML Marshalling View
TheMarshallingView
uses an XMLMarshaller
defined in theorg.springframework.oxm
package to render the response content as XML. The object to be marshalled can be set explicitly usingMarhsallingView’s `modelKey
bean property. Alternatively, the view will iterate over all model properties and marshal the first type that is supported by theMarshaller
. For more information on the functionality in theorg.springframework.oxm
package refer to the chapterMarshalling XML using O/X Mappers.