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
diff --git a/xpath.c b/xpath.c
index f712064..7861160 100644
--- a/xpath.c
+++ b/xpath.c
@@ -6856,13 +6856,13 @@
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);
}