Changed the internals a lot for DOM, entity support, slight changes of API,
more (if not all) formating of function comments, started documentation, Daniel.
diff --git a/entities.c b/entities.c
index 5a788e6..351746c 100644
--- a/entities.c
+++ b/entities.c
@@ -143,6 +143,29 @@
     }
 }
 
+/**
+ * xmlGetPredefinedEntity:
+ * @name:  the entity name
+ *
+ * Check whether this name is an predefined entity.
+ *
+ * return values: NULL if not, othervise the entity
+ */
+xmlEntityPtr
+xmlGetPredefinedEntity(const CHAR *name) {
+    int i;
+    xmlEntityPtr cur;
+
+    if (xmlPredefinedEntities == NULL)
+        xmlInitializePredefinedEntities();
+    for (i = 0;i < xmlPredefinedEntities->nb_entities;i++) {
+	cur = &xmlPredefinedEntities->table[i];
+	if (!xmlStrcmp(cur->name, name)) return(cur);
+    }
+    return(NULL);
+}
+
+
 
 /*
  * xmlAddDtdEntity : register a new entity for this DTD.