If doing things on the soap/webservices side, the "best" way to do this it to write an interceptor that runs right after the StaxOutInterceptor that wrappers the XMLStreamWriter with a new one that would strip out comments and such while they are being written.
Dan On Fri October 2 2009 2:02:26 pm cj91 wrote: > Hey guys, Jon here with another cxf-hacking question. > > I'm trying to interface with an external system using CXF. They're not real > keene on adhering to the XML or SOAP spec, so I'm faced with some > interesting design challenges. > > I'm not allowed to send newlines or comments over. Is there a way to > guarantee CXF will not 'pretty print' outgoing xml? I'm thinking about > writing an interceptor to do some of these interesting nauances, but I > don't want to duplicate any work. > > Also, If I have to go the interceptor route, what phase in the chain should > I plan on processing XML in? > -- Daniel Kulp [email protected] http://www.dankulp.com/blog
