Hi
I know what happened ;-)
you tried to serialize XML by hand
my advice: use an appropriate tool
Cheers



--- On Fri, 7/25/08, Dini Omar <[EMAIL PROTECTED]> wrote:

> From: Dini Omar <[EMAIL PROTECTED]>
> Subject: Adding a CDATA element being converted to &lt; and &gt
> To: [EMAIL PROTECTED], [email protected]
> Date: Friday, July 25, 2008, 2:55 PM
> Hi all,
> 
> I am trying to build the payload/messagebody for an
> element. According to
> the specific the payload has to be within a CDATA element.
> I tried to do
> this as shown below
> 
> 
> private static final String START_TAG=new
> String("<![CDATA[");
> private static final String END_TAG= new
> String("]]>");
> SadFileStub.IEEdifactString theString = new
> SadFileStub.IEEdifactString();
> theString.setIEEdifactString(START_TAG.concat("MESSAGE
> CONTENT
> DATA").concat(END_TAG));
> 
> This does not seem to work as the message is coming out as
> shown below
> 
> &lt;![CDATA[MESSAGE CONTENT DATA]]&gt;
> 
> Does anyone know why this is happening?


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to