converted too small cleanup Daniel

* HTMLtree.c include/libxml/xmlerror.h: converted too
* tree.c: small cleanup
Daniel
diff --git a/tree.c b/tree.c
index e360c12..bea5dfe 100644
--- a/tree.c
+++ b/tree.c
@@ -6837,7 +6837,7 @@
 #ifdef LIBXML_OUTPUT_ENABLED
 /************************************************************************
  *									*
- * 		Output memory error handler				*
+ * 			Output error handlers				*
  *									*
  ************************************************************************/
 /**
@@ -6875,10 +6875,13 @@
 	case XML_SAVE_UNKNOWN_ENCODING:
 	    msg = "unknown encoding %s";
 	    break;
+	case XML_SAVE_NO_DOCTYPE:
+	    msg = "document has no DOCTYPE";
+	    break;
 	default:
 	    msg = "unexpected error number";
     }
-    __xmlSimpleError(XML_FROM_TREE, code, node, msg, extra);
+    __xmlSimpleError(XML_FROM_OUTPUT, code, node, msg, extra);
 }
 /************************************************************************
  *									*