- Lots of improvements, too long to list here
- Push mode for the XML parser (HTML to come)
- XML shell like interface for debug
- improvements on XPath and validation
Daniel
diff --git a/HTMLtree.c b/HTMLtree.c
index c84daea..e6142ae 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -28,6 +28,9 @@
 #include "entities.h"
 #include "valid.h"
 
+static void
+htmlDocContentDump(xmlBufferPtr buf, xmlDocPtr cur);
+
 /**
  * htmlDtdDump:
  * @buf:  the HTML buffer output
@@ -108,7 +111,7 @@
 }
 
 
-static void
+void
 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur);
 /**
  * htmlNodeListDump:
@@ -138,7 +141,7 @@
  *
  * Dump an HTML node, recursive behaviour,children are printed too.
  */
-static void
+void
 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) {
     htmlElemDescPtr info;
 
@@ -149,6 +152,10 @@
     /*
      * Special cases.
      */
+    if (cur->type == XML_HTML_DOCUMENT_NODE) {
+	htmlDocContentDump(buf, (xmlDocPtr) cur);
+	return;
+    }
     if (cur->type == HTML_TEXT_NODE) {
 	if (cur->content != NULL) {
             xmlChar *buffer;