Sounds like exactly what a CXF RESTful api can do, together with its XSLTJaxbProvider. XSLTJaxbProvider precompiles the stylesheets, so you can register an outbound stylesheet which will produce a text-based output.
You can also register an outbound XMLStreamWriter which will ensure no ignorable newlines are written out and a JAXRS JAXB provider will use it. Cheers, Sergey -----Original Message----- From: cj91 [mailto:[email protected]] Sent: 02 October 2009 19:02 To: [email protected] Subject: XML Newlines 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? -- View this message in context: http://www.nabble.com/XML-Newlines-tp25719940p25719940.html Sent from the cxf-user mailing list archive at Nabble.com.
