I have data that I'm serializing that has characters that aren't allowed in xml version 1.0:
<value>this  is not good for 1.0</value>
When RESTEasy serializes this via JAXB it produces this:
<?xml version="1.0" encoding="UTF-8"?>
<value>this  is not good for 1.0</value>
Which XML parsers will not parse as 1.0 does not allow that character, if I set the xml version to 1.1 parsers are happy.
I can do this via:
transformer.setOutputProperty(OutputKeys.VERSION, "1.1");
So what I'm wanting to know is what's the best way to configure jboss / resteasy / jaxb such that when it creates the transformer it uses that it's configured with this output property.