Both args of xmlStrcasestr are const * include/libxml/xmlstring.h xmlstring.c: fix the constness of the second arg of xmlStrcasestr()