fixing bug #59946 on xmlns="" Daniel

* SAX.c: fixing bug #59946 on xmlns=""
Daniel
diff --git a/SAX.c b/SAX.c
index 5466c01..6f3683c 100644
--- a/SAX.c
+++ b/SAX.c
@@ -1134,7 +1134,13 @@
 	    ctxt->sax->warning(ctxt->userData, 
 		 "Namespace prefix %s is not defined\n", prefix);
     }
-    xmlSetNs(ret, ns);
+
+    /*
+     * set the namespace node, making sure that if the default namspace
+     * is unbound on a parent we simply kee it NULL
+     */
+    if ((ns != NULL) && (ns->href[0] != 0))
+	xmlSetNs(ret, ns);
 
     /*
      * process all the other attributes