aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-01-31 20:29:19 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-01-31 20:29:19 +0000
commit1971ee2698cb84c7699c96d3302f00e20d42c0d3 (patch)
tree52d9c3730556c10cf92a9e7f281767caa28bdb19 /xpath.c
parent36ed5290a2dd1d44ddc0f102f6251156ad6965b9 (diff)
downloadandroid_external_libxml2-1971ee2698cb84c7699c96d3302f00e20d42c0d3.tar.gz
android_external_libxml2-1971ee2698cb84c7699c96d3302f00e20d42c0d3.tar.bz2
android_external_libxml2-1971ee2698cb84c7699c96d3302f00e20d42c0d3.zip
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
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xpath.c b/xpath.c
index f7120644..7861160f 100644
--- a/xpath.c
+++ b/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);
}