1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

close bug #61550 when xml: wasn't considered a namespace daniel

* valid.c: close bug #61550 when xml: wasn't considered a namespace
daniel
This commit is contained in:
Daniel Veillard
2001-10-02 09:28:58 +00:00
parent f6ed8bc7b2
commit f4309d74b6
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Tue Oct 2 11:27:58 CEST 2001 Daniel Veillard <daniel@veillard.com>
* valid.c: close bug #61550 when xml: wasn't considered a namespace
Tue Oct 2 11:18:32 CEST 2001 Daniel Veillard <daniel@veillard.com> Tue Oct 2 11:18:32 CEST 2001 Daniel Veillard <daniel@veillard.com>
* win32/dsp/libxml2.def.src: Igor Zlatkovic patches * win32/dsp/libxml2.def.src: Igor Zlatkovic patches

View File

@ -344,10 +344,12 @@ xmlSplitQName2(const xmlChar *name, xmlChar **prefix) {
*prefix = NULL; *prefix = NULL;
#ifndef XML_XML_NAMESPACE
/* xml: prefix is not really a namespace */ /* xml: prefix is not really a namespace */
if ((name[0] == 'x') && (name[1] == 'm') && if ((name[0] == 'x') && (name[1] == 'm') &&
(name[2] == 'l') && (name[3] == ':')) (name[2] == 'l') && (name[3] == ':'))
return(NULL); return(NULL);
#endif
/* nasty but valid */ /* nasty but valid */
if (name[0] == ':') if (name[0] == ':')