* xpath.c: fixed problem with string value for PI node (bug #442275) svn path=/trunk/; revision=3621
@@ -5583,7 +5583,10 @@ xmlXPathCastNumberToString (double val) {
*/
xmlChar *
xmlXPathCastNodeToString (xmlNodePtr node) {
return(xmlNodeGetContent(node));
xmlChar *ret;
if ((ret = xmlNodeGetContent(node)) == NULL)
ret = xmlStrdup((const xmlChar *) "");
return(ret);
}
/**
The note is not visible to the blocked user.