1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

- 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
This commit is contained in:
Daniel Veillard
2001-06-20 13:55:33 +00:00
parent 39196eba17
commit 10ea86cba4
3 changed files with 85 additions and 43 deletions

View File

@ -4205,6 +4205,13 @@ xmlValidateElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr elem) {
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) {