[XML-SIG] sax2 parsing from a string
Jürgen Hermann
jh@web.de
Thu, 27 Sep 2001 12:38:30 +0200
"Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> schrieb am 27.09.01:
> > self._parser.Parse(data, isFinal)
> > File "extensions/pyexpat.c", line 522, in CharacterData
> > TypeError: not enough arguments; expected 4, got 2
>
> I cannot reproduce this problem. Can you please find out what content
> handler exactly you gave to the expat reader? It appears that you
> somehow put in a character data handler that expects 4 arguments,
> whereas pyexpat will only pass 2 of them.
That is a diff between a SAX and a SAX2 handler, i.e. he uses a SAX handler with the SAX2 parser.
> No, they don't. A SAX2 characters handler has only a single content
> argument; it was SAX1 where you had start and length arguments.
... as you already have mentioned. :)
_______________________________________________________________________
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
IhrName@web.de, 8MB Speicher, Verschluesselung - http://freemail.web.de