Re: [XML-SIG] Default namespace
by Lars Marius Garshol other posts by this author
Aug 31 2001 7:23AM messages near this date
[XML-SIG] Default namespace
|
[XML-SIG] [bug] Encoding troubles with attributes' CDATA, py1.5.2 + pyxml
0.6.6
* Juergen Hermann
|
| What should the default namespace URI be bound to? u'' or None?
Do you mean what the namespace URI of elements with no namespace is?
It is None.
Java SAX uses "" to avoid awkwardness in applications which would have
had to do a != null && a.equals("foo") had the default URI been None.
We decided to use None in Python, since Python has no such problems,
and since felt more natural.
I put in a mention of this in the documentation string for
ContentHandler now.
--Lars M.
_______________________________________________
XML-SIG maillist - XML-SIG@[...].org
http://mail.python.org/mailman/listinfo/xml-sig
Thread:
Juergen Hermann
Lars Marius Garshol
|