mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
minor optimization more work on the python bindings, they now support
* xpath.c: minor optimization * python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h: more work on the python bindings, they now support XPath and there is no evident leak Daniel
This commit is contained in:
6
xpath.c
6
xpath.c
@ -6856,13 +6856,13 @@ xmlXPathIsNodeType(const xmlChar *name) {
|
||||
if (name == NULL)
|
||||
return(0);
|
||||
|
||||
if (xmlStrEqual(name, BAD_CAST "comment"))
|
||||
if (xmlStrEqual(name, BAD_CAST "node"))
|
||||
return(1);
|
||||
if (xmlStrEqual(name, BAD_CAST "text"))
|
||||
return(1);
|
||||
if (xmlStrEqual(name, BAD_CAST "processing-instruction"))
|
||||
if (xmlStrEqual(name, BAD_CAST "comment"))
|
||||
return(1);
|
||||
if (xmlStrEqual(name, BAD_CAST "node"))
|
||||
if (xmlStrEqual(name, BAD_CAST "processing-instruction"))
|
||||
return(1);
|
||||
return(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user