Fwd: [XML-SIG] xmlpickle.py ?!

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Tue, 8 Aug 2000 18:50:12 +0200


tom passin wrote:
> > ...
> > How robust is this CDATA wrapping ? What if the data itself
> > is XML and contains a CDATA section ?
> >  ...
>=20
> You can't nest CDATA sections - see sec. 2.7 of the XML =
Recommendation.
> CDATA can't contain the ']]>' sequence - it always denotes the end of =
the
> CDATA section, hence no nesting.

CDATA sections cannot nest, but that doesn't mean that you
cannot store ]]> as CDATA:

    output =3D string.replace(data, "]]>", "]]]><![CDATA[]>")

</F>