You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Seumas Soltysik <se...@iona.com> on 2001/04/16 22:31:41 UTC

Proper way of Serializing a String

Is there a proper way of serializing a String? Should all Strings be passed 
within a CDATA tag or should all offending characters such as '<' and '>' 
use an escape sequence in order to be transmitted as part of a SOAP 
message?
Thanks,
Seumas Soltysik


Re: Proper way of Serializing a String

Posted by Scott Nichol <sn...@computer.org>.
For virtually all strings, your code need not process the string in any way.  The Apache
SOAP code will escape the ", ', < and > characters for you.  The exception is < and >
characters that are part of a CDATA tag, which are passed unescaped, as are all
characters contained within the CDATA.

Scott Nichol

----- Original Message -----
From: "Seumas Soltysik" <se...@iona.com>
To: <so...@xml.apache.org>
Sent: Monday, April 16, 2001 4:31 PM
Subject: Proper way of Serializing a String


> Is there a proper way of serializing a String? Should all Strings be passed
> within a CDATA tag or should all offending characters such as '<' and '>'
> use an escape sequence in order to be transmitted as part of a SOAP
> message?
> Thanks,
> Seumas Soltysik
>