[XML-SIG] DOM and empty namespaces
Alexandre Fayolle
Alexandre.Fayolle@logilab.fr
Wed, 21 Nov 2001 17:04:52 +0100 (CET)
On Wed, 21 Nov 2001, Rich Salz wrote:
> So that means if I have code that wants to work with pyxml 0.6 and 0.7 I
> need to do this:
> try:
> from xml.dom import EMPTY_NAMESPACE
> except:
> EMPTY_NAMESPACE=''
>
> and make sure all my get...NS() calls use EMPTY_NAMESPACE
>
> Right?
Almost. If the DOM you're using was created with validation enabled on
PyXML-0.6.6, empty namespace is None...
> We should probably document this.
Hmm. Probably ;o)
Alexandre Fayolle
--
LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
Narval, the first software agent available as free software (GPL).