ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-sig
xml-sig
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved