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:
7
valid.c
7
valid.c
@ -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) {
|
||||
|
Reference in New Issue
Block a user