Hi Kiren
Can using CData blocks help ?
Another option is to use a Stax transformation feature and drop some
simple elements that may have the illegal values:
http://cxf.apache.org/docs/transformationfeature.html#TransformationFeature-Droppingoutputandinputelements
Finally you can register a custom XMLStreamWriter and do a more
fine-grained control...
HTH, Sergey
On 03/08/15 13:55, Kiren Pillay wrote:
Hi
Which is the most efficient way of removing illegal characters from the
JAXB XML Output for a JAX-RS service?
I have data values that have 0x00 which does get marshalled, however the
client falls over because of this. I want to prevent these values from
being written to the JAXB Output stream.
Regards
Kiren