- parser.c: one must report spaces even if the Dtd element
content proves that this is not part of the element content.
- result/valid/*.xml: this changed the ouptu slightly
Daniel
diff --git a/parser.c b/parser.c
index b6f6144..f1617a3 100644
--- a/parser.c
+++ b/parser.c
@@ -1393,6 +1393,9 @@
int i, ret;
xmlNodePtr lastChild;
+ if (ctxt->keepBlanks)
+ return(0);
+
/*
* Check for xml:space value.
*/
@@ -1417,8 +1420,6 @@
/*
* Otherwise, heuristic :-\
*/
- if (ctxt->keepBlanks)
- return(0);
if (RAW != '<') return(0);
if (ctxt->node == NULL) return(0);
if ((ctxt->node->children == NULL) &&
@@ -1641,7 +1642,7 @@
return(ret);
}
}
- xmlParseNameComplex(ctxt);
+ return(xmlParseNameComplex(ctxt));
}
xmlChar *