- valid.c: fixed a bug found when post validating an entity ref
- xmllint.c: added --loaddtd and sligly changed --postvalid to
  activate it too
Daniel
diff --git a/valid.c b/valid.c
index e9049e0..217fd45 100644
--- a/valid.c
+++ b/valid.c
@@ -4205,6 +4205,13 @@
 
     CHECK_DTD;
 
+    /*
+     * Entities references have to be handled separately
+     */
+    if (elem->type == XML_ENTITY_REF_NODE) {
+	return(1);
+    }
+
     ret &= xmlValidateOneElement(ctxt, doc, elem);
     attr = elem->properties;
     while(attr != NULL) {