[XML-SIG] Signature of startElement

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue, 19 Sep 2000 10:35:33 +0200

> I have changed most of what needs to change in the API on my laptop
> already. I only need to test the changes and fix any problems that
> show up. I can do this this week, but would like to feel that I have
> the SIG (and the Python developers) behind me before I do so.

Well, if you manage to change this *quickly*, you have my support :-)

Anything that works is fine with me - it does not need to be elegant,
it must be consistent, and it must be available RSN. Why don't you
just post a snapshot patch now?

> startElement(name, attrs): 
>   name is a string, attrs an Attributes instance
> startElementNS(name, qname, attrs):
>   name is a (uri, localname) tuple, qname the qualified XML 1.0 name,
>   and attrs an Attributes instance
> endElement(name):
>   name is a string
> endElementNS(name, qname):
>   name is a (uri, localname) tuple, while qname is the qualified XML
>   1.0 name

Sounds good. The next question then is: which of those should be
invoked by the parsers, under what circumstances?

I can see two alternatives:
a) depending on some configuration setting, the parser invokes only
   one set.
b) the parser always invokes *NS. The base class implements that as

   def startElementNS(self, name, qname, attrs):
     return self.startElement(qname, attrs)

Which one is it, or is it something else?