diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-01-31 20:29:19 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-01-31 20:29:19 +0000 |
commit | 1971ee2698cb84c7699c96d3302f00e20d42c0d3 (patch) | |
tree | 52d9c3730556c10cf92a9e7f281767caa28bdb19 /xpath.c | |
parent | 36ed5290a2dd1d44ddc0f102f6251156ad6965b9 (diff) | |
download | android_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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |