[XML-SIG] Signature of startElement

Dieter Maurer dieter@handshake.de
Mon, 18 Sep 2000 23:01:05 +0200 (CEST)

Martin v. Loewis writes:
 > FWIW, the startElement in 2.0 is defined as
 >     def startElement(self, name, attrs):
 >         """Signals the start of an element.
 >         The name parameter contains the name of the element type as a
 >         (uri ,localname) tuple, the qname parameter the raw XML 1.0
 >         name used in the source document, and the attrs parameter
 >         holds an instance of the Attributes class containing the
 >         attributes of the element."""
Obviously, the docstring and the definition are not consistent.

 > The parser does indeed pass a (uri, localname) pair to startElement,
 > so it *is* capable of dealing with namespaces right now. The only
 > uncertainty is the qname parameter, which is also passed and
 > documented, but not listed in the base class signature.
How is this possible without raising an exception?