[jdom-interest] CDATA sections?
kevinr at valicert.com
Sat Jun 3 14:46:28 PDT 2000
Yup, no binary data. For Base64, there would be no need
to wrap something in a CDATA section.
On Sat, 3 Jun 2000, Jason Hunter wrote:
> > I'm thinking in an specialized editor. All XML tags will be hidden and
> > entries will be stored in CDATA sections; most of the time there will
> > plain strings in those sections, but a jpeg image could be inserted in
> > CDATA section too.
> XML files are text. They don't hold binary data. (CDATA stands for
> Character data.) If you want to store a JPEG you have to use something
> like BASE64 encoding to make the binary data into text, and that makes
> the decision between CDATA or not pretty unimportant. You can wrap the
> BASE64 text with CDATA, but you'll still need to walk through the data
> being sure to escape any accidental appearance of the CDATA end sequence
> characters. No real difference.
> To control your jdom-interest membership:
More information about the jdom-interest