You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jimmy Zhang <cr...@comcast.net> on 2008/10/01 03:36:48 UTC

Re: Retaining CDATA in the servicemix-http output

VTD-XML is ideal for that (CDATA are not removed)
http://vtd-xml.sf.net

----- Original Message ----- 
From: "Gert Vanthienen" <ge...@skynet.be>
To: <us...@servicemix.apache.org>
Sent: Tuesday, September 30, 2008 11:40 AM
Subject: Re: Retaining CDATA in the servicemix-http output


> Gopi Krishna,
>
> The easiest way to achieve this is by using the marshaler support in the 
> HTTP endpoint.  The marshaler is basically an object you can plug into the 
> endpoint to control message translation for the HTTP protocol.  You could 
> use this to extend our default implementations to add the desired behavior 
> this way.  Once you have coded your class, you can package it in the SU 
> and reference it from the xbean.xml.
>
> Regards,
>
> Gert
>
> sachin2008 wrote:
>> Hi, I need to retain, CDATA tags in the response that i send from my
>> application.
>> http is parsing the content while sending response. So, CDATA tags are 
>> being
>> removed automatically.
>> Is there any way to retain the CDATA sections.
>> Even both the representations are same, we have to  retain CDATA tags.
>>
>> Regards
>> Gopi krishna.
>>
>>
>>
>> -----
>> Cheers
>> Praveen Oruganti
>> "Think before you act and act on what you believe"
>>
>
>