fixing bug #59946 on xmlns="" Daniel

* SAX.c: fixing bug #59946 on xmlns=""
Daniel
This commit is contained in:
Daniel Veillard 2001-09-10 18:14:14 +00:00
parent 7a51d6df13
commit 143b04fb73
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Sep 10 20:13:09 CEST 2001 Daniel Veillard <daniel@veillard.com>
* SAX.c: fixing bug #59946 on xmlns=""
Mon Sep 10 16:39:42 CEST 2001 Daniel Veillard <daniel@veillard.com>
* include/libxml/xmlerror.h SAX.c: fixing bug 59732, simple

8
SAX.c
View File

@ -1134,7 +1134,13 @@ startElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)
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