[XML-SIG] gray areas in Python SAX API

Martin v. Loewis martin@v.loewis.de
Mon, 26 Nov 2001 23:26:46 +0100


> How should the lack of prefix be represented? 4DOM uses '' for the prefix
> of non-prefixed elements, whereas both PyExpat and xmlproc use None. 

The definition of prefix, on p.40 of
http://www.w3.org/TR/2000/PR-DOM-Level-2-Core-20000927 is

prefix of type DOMString [p.17] , introduced in DOM Level 2
  The namespace prefix [p.103] of this node, or null if it is
  unspecified.

So it should be null, which, in Python, means it should be None.

That says nothing about SAX, of course.

Regards,
Martin