Hi gapag,

I didn't show the code, but actually, I already had a 
@JacksonXmlElementWrapper, but I had the useWrapping set to the wrong value 
(misunderstood).  I changed it from true to false and that took care of the 
problem!!

Thanks!

Jim

On Tuesday, November 30, 2021 at 2:52:14 PM UTC-5 gapag wrote:

> 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/613c0897-59f6-4bb5-ac32-328019a1367an%40googlegroups.com.

Reply via email to