Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring JAXB unmarshal tp avoid decoding the XML data

I have an incoming XML with a value which is an encoded form such as &ltimg src=/".../" &gt , but when unmarshalling this data JAXB is decoding the data to <img src=/"../" > which I do not want it to do.

Is there any configuration to disable this behavior in JAXB?

like image 545
Raghavendra Harapanahalli Avatar asked Jun 11 '26 20:06

Raghavendra Harapanahalli


1 Answers

Define your variable value as CDATA by using annotations or otherwise

like image 110
Germann Arlington Avatar answered Jun 14 '26 18:06

Germann Arlington