Can someone guide me to generate XML using Jaxb2Marshaller with special characters e.g. '&', '<', '>'? I have got a few pointers on StackOverflow to use below snippet in spring config file, but the same doesnt work out & I continue to receive '&', '<', '>' respectively. Any pointers will be really helpful.
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="marshallerProperties">
<map>
<entry key="jaxb.encoding">
<value>UTF-8</value>
</entry>
</map>