Revamped HTML parsing, lots of bug fixes for HTML stuff,
Added xmlValidGetValidElements and xmlValidGetPotentialChildren,
Completed and cleaned up the tests,
Added doc for new modules gnome-xml-xmlmemory.html and gnome-xml-nanohttp.html,
Daniel
diff --git a/xpath.c b/xpath.c
index 3a703bb..f646e9f 100644
--- a/xpath.c
+++ b/xpath.c
@@ -562,7 +562,8 @@
 	    fprintf(output, " NULL !\n");
 	    return;
         }
-	if (obj->nodeTab[i]->type == XML_DOCUMENT_NODE)
+	if ((obj->nodeTab[i]->type == XML_DOCUMENT_NODE) ||
+	    (obj->nodeTab[i]->type == XML_HTML_DOCUMENT_NODE))
 	    fprintf(output, " /");
 	else if (obj->nodeTab[i]->name == NULL)
 	    fprintf(output, " noname!");
@@ -1471,7 +1472,8 @@
 	    return(ctxt->context->doc->root);
         return(ctxt->context->node->childs);
     }
-    if (ctxt->context->node->type == XML_DOCUMENT_NODE) 
+    if ((ctxt->context->node->type == XML_DOCUMENT_NODE) ||
+        (ctxt->context->node->type == XML_HTML_DOCUMENT_NODE))
 	return(NULL);
     return(cur->next);
 }