[
Lists Home |
Date Index |
Thread Index
]
>
> From: "Bob Wyman" <bob@wyman.us>
> Date: 2004/02/14 Sat PM 03:07:26 EST
> To: <michael.h.kay@ntlworld.com>, <santony@bellsouth.net>,
> "'Paul Sumner Downey'" <Paul.Downey@whatfettle.com>,
> <xml-dev@lists.xml.org>
> Subject: RE: RE: [xml-dev] XML inside another XML
>
> Michael Kay wrote:
> > You need to replace "]]>" by something like "]]>]]><![CDATA["
> > (And as people sometimes point out, if you're going to do that
> > then it's just as easy not to use CDATA at all, but to substitute
> > &, <, and > instead).
> But, the result of escaping the entire enclosed chunk of XML
> can result in a very large increase in the size of the data. Using
> CDATA and escaping just the exceptionally rare cases of embedded CDATA
> will generally result in smaller objects. If it is "just as easy" to
> produce something that is smaller, I would expect that the smaller
> option would be preferred.
This is true indeed. But then we will have to tell the receiving piece of software to decode just this piece. This means that they will have to resort to a proprietary decoding. Since it is another team/company, I d rather have the whole document encoded/escaped.
By the way how will I escape/convert <, > etc in java
--sony
|