[XML-SIG] Re: Bug in expatreader module...
Achim Gaedke
Achim.Gaedk@zpr.uni-koeln.de
Sun, 17 Jun 2001 03:42:28 +0200
>The bug is in your code, not in the expatreader. After parsing has
>started, you must not call setContentHandler anymore. The behaviour is
>undefined if you do.
>Regards,
>Martin
This is a possible and valid answer, if you assume, that this type of
programming does not make sense....
http://python.sourceforge.net/devel-docs/lib/xmlreader-objects.html
states:
setContentHandler(handler)
Set the current ContentHandler. If no ContentHandler is set, conten=
t
events will be discarded.
that means, that there are more than one content handler(i.e. the current=
one) so this documentation does not say, that I must not call setContent=
Handler again.
Bye,
Achim
--
Achim Gaedke, ZPR
Weyertal 80, 50931 K=F6ln
Tel: +49 221 470 6021