fixed a bug when walking the descendants and the current node has no

* xpath.c: fixed a bug when walking the descendants and
  the current node has no children
* debugXML.c: show up when a text node is supposed to not be escaped
Daniel
diff --git a/debugXML.c b/debugXML.c
index 3056548..ddf9657 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -20,15 +20,13 @@
 #include <libxml/xmlmemory.h>
 #include <libxml/tree.h>
 #include <libxml/parser.h>
+#include <libxml/parserInternals.h>
 #include <libxml/valid.h>
 #include <libxml/debugXML.h>
 #include <libxml/HTMLtree.h>
 #include <libxml/HTMLparser.h>
 #include <libxml/xmlerror.h>
 
-#define IS_BLANK(c)							\
-  (((c) == '\n') || ((c) == '\r') || ((c) == '\t') || ((c) == ' '))
-
 /**
  * xmlDebugDumpString:
  * @output:  the FILE * for the output
@@ -569,7 +567,10 @@
             break;
         case XML_TEXT_NODE:
             fprintf(output, shift);
-            fprintf(output, "TEXT\n");
+	    if (node->name == xmlStringTextNoenc)
+		fprintf(output, "TEXT no enc\n");
+	    else
+		fprintf(output, "TEXT\n");
             break;
         case XML_CDATA_SECTION_NODE:
             fprintf(output, shift);