Re: UnMarshalling illegal characters from XML

2015-08-04 Thread Kiren Pillay
Hi Sergey,James, The application is quite old now, so CDATA is not an option since the client may need to change. I think writing a custom XMLStreamWriter may fit the purpose. Thanks Kiren On Mon, Aug 3, 2015 at 11:36 PM, James Hutton wrote: > I've had to deal with this and the only way I cou

Re: UnMarshalling illegal characters from XML

2015-08-03 Thread James Hutton
I've had to deal with this and the only way I could see was to extend the jaxws/jaxb front-end and basically filter the output. Only works with two of the four writers. On Aug 3, 2015 4:34 PM, "Sergey Beryozkin" wrote: > Hi Kiren > Can using CData blocks help ? > Another option is to use a Stax t

Re: UnMarshalling illegal characters from XML

2015-08-03 Thread Sergey Beryozkin
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 cu

UnMarshalling illegal characters from XML

2015-08-03 Thread Kiren Pillay
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