You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ronald Pieterse <ro...@gmail.com> on 2010/11/01 18:57:02 UTC

Disabling default CDATA wrapping behaviour

In the xml response, when sending data that would make an invalid xml, that
data is wrapped in CDATA.
Is it possible to disable this default wrapping? I would like to handle that
with some custom adapters.
The problem I have now is that I would like to wrap some data always in
CDATA, even though it would result in correct xml.

Thnx,
Ronald 
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Disabling-default-CDATA-wrapping-behaviour-tp3245446p3245446.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Disabling default CDATA wrapping behaviour

Posted by Sergey Beryozkin <sb...@gmail.com>.
You might want to create a custom XMLStreamWriter which will deal with CData

cheers, Sergey

On Mon, Nov 1, 2010 at 8:05 PM, Benson Margulies <bi...@gmail.com>wrote:

> In general, this is happening in Woodstox. If you want to control it,
> you'd need to look into what it would let you do.
>
> On Mon, Nov 1, 2010 at 1:57 PM, Ronald Pieterse
> <ro...@gmail.com> wrote:
> >
> > In the xml response, when sending data that would make an invalid xml,
> that
> > data is wrapped in CDATA.
> > Is it possible to disable this default wrapping? I would like to handle
> that
> > with some custom adapters.
> > The problem I have now is that I would like to wrap some data always in
> > CDATA, even though it would result in correct xml.
> >
> > Thnx,
> > Ronald
> > --
> > View this message in context:
> http://cxf.547215.n5.nabble.com/Disabling-default-CDATA-wrapping-behaviour-tp3245446p3245446.html
> > Sent from the cxf-user mailing list archive at Nabble.com.
> >
>

Re: Disabling default CDATA wrapping behaviour

Posted by Benson Margulies <bi...@gmail.com>.
In general, this is happening in Woodstox. If you want to control it,
you'd need to look into what it would let you do.

On Mon, Nov 1, 2010 at 1:57 PM, Ronald Pieterse
<ro...@gmail.com> wrote:
>
> In the xml response, when sending data that would make an invalid xml, that
> data is wrapped in CDATA.
> Is it possible to disable this default wrapping? I would like to handle that
> with some custom adapters.
> The problem I have now is that I would like to wrap some data always in
> CDATA, even though it would result in correct xml.
>
> Thnx,
> Ronald
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Disabling-default-CDATA-wrapping-behaviour-tp3245446p3245446.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>