Hi Jim,

¶ I guess you need to decorate your data classes with the XML specific 
@JacksonXmlElementWrapper to get the behaviour you wish.

https://github.com/FasterXML/jackson-dataformat-xml#additional-annotations

¶ If you don't want/cannot decorate the class definition of the objects 
your are deserializing to, you can properly initialize the ObjectMapper:

https://github.com/FasterXML/jackson-docs/wiki/JacksonMixInAnnotations

BR,
-gapag
-----
On Tuesday, November 30, 2021 at 1:05:15 AM UTC+1 ohay...gmail.com wrote:
Hi,

I have just started working with a Spring boot project.  This currently 
works and supports JSON responses, and I am trying to add support for XML 
responses.  

Thanks,
Jim

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/9d905f32-16d3-4619-b87b-26c131e5f340n%40googlegroups.com.

Reply via email to