1.1 --- a/libxml2dom/macrolib/macrolib.py Sun Dec 11 20:48:47 2005 +0000
1.2 +++ b/libxml2dom/macrolib/macrolib.py Sun Dec 11 20:50:41 2005 +0000
1.3 @@ -231,9 +231,10 @@
1.4 new_ns = libxml2mod.xmlNewNs(new_node, ns, prefix)
1.5 libxml2mod.xmlSetNs(new_node, new_ns)
1.6 # If the namespace is empty, set a "null" declaration.
1.7 + elif prefix is not None:
1.8 + new_ns = libxml2mod.xmlNewNs(new_node, "", prefix)
1.9 + libxml2mod.xmlSetNs(new_node, new_ns)
1.10 else:
1.11 - #new_ns = libxml2mod.xmlNewNs(new_node, "", prefix)
1.12 - #libxml2mod.xmlSetNs(new_node, new_ns)
1.13 libxml2mod.xmlSetNs(new_node, None)
1.14 Node_setAttribute(new_node, "xmlns", "")
1.15 return new_node