1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

- tree.[ch] parser.c xpath.c: fixed the problem of addressing

attributes within the XML-1.0 namespace
Daniel
This commit is contained in:
Daniel Veillard
2001-02-16 00:11:46 +00:00
parent 6e6a6cc6e7
commit e0e265138e
6 changed files with 74 additions and 2 deletions

View File

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