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:
2
parser.c
2
parser.c
@ -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] == ':')
|
||||
|
Reference in New Issue
Block a user