[XML-SIG] losing cdata tag

Juergen Hermann Juergen Hermann" <jh@web.de
Sun, 26 May 2002 21:35:48 +0200


On Sat, 25 May 2002 19:14:20 -0400, Paul Tremblay wrote:

>I have copied the code below from python cookbook, but it is not
>working. Specifically, the "def startCDATA(self)" method does not
>get invoked.

That depends on the parser you use.

>Since this method does not get invoked, my cdata is not getting
>put between the right tags. That means my output file is no
>longer valid xml, and I cannot parse it again.

Are you sure on that, or did you just guess that? When in_cdata is 
never set, ALL text becomes escaped, i.e. the output is still valid 
XML, even if without CDATA sections.


Ciao, J=FCrgen