diff -u -rup libxml2-2.5.8/xmlreader.c libxml2-2.5.8-fixed/xmlreader.c
--- libxml2-2.5.8/xmlreader.c	Thu Jun  5 12:22:33 2003
+++ libxml2-2.5.8-fixed/xmlreader.c	Thu Jul 17 20:04:28 2003
@@ -772,6 +772,7 @@ get_next_node:
 	    (reader->node->type == XML_ENTITY_REF_NODE) ||
 	    (reader->node->type == XML_DTD_NODE) ||
 	    (reader->node->type == XML_DOCUMENT_NODE) ||
+	    (reader->node->children && reader->node->children->type == XML_TEXT_NODE) ||
 	    (reader->node->type == XML_HTML_DOCUMENT_NODE)) &&
 	   ((reader->ctxt->node == NULL) ||
 	    (reader->ctxt->node == reader->node) ||
