I don't think that CXF is ever likely to use CDATA. From a data model
standpoint, CDATA is no different from judicious use of <.

If you are using the JAXB data binding, you might try asking them.


On Tue, May 26, 2009 at 4:00 PM, Radovanovic, Vladan <
[email protected]> wrote:

> Please excuse my ignorance but I hope someone can help me out with this
> simple issue.
> I have a simple web service that's returning xml document as a response.  I
> simply can't figure out what document needs to have in order for CXF to
> surround that response with <![CDATA[   ]] tag?
>
> Previously I have wrote a similar web service and in that case CXF has
> automatically surrounded the response with <![CDATA[   ]] tag.
>
> It seems to me CXF uses XMLStreamWriter.writeCData which is triggered when
> parser determines that the event is XMLStreamConstants.CDATA but
> again...what exactly needs to be in that node for parser to treat is as
> CDATA?
>
> What am I missing?
>
> TIA
>
>

Reply via email to