I have an Object that is being marshalled to XML using JAXB. One element contains a String that includes quotes (\"). The resulting XML has " where t
For some reason I have no time to find out, it worked for me when setting
marshaller.setProperty(Marshaller.JAXB_ENCODING, "utf-8");
As opposed to using "UTF-8" or "Unicode"
I suggest you try them, and as @Javatar said, check them dumping to file using:
marshaller.marshal(shipOrder, new File(""));
and opening it with a a decent text editor like notepad++