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

one more IsEmptyElement crazyness, that time in external parsed entities

* parser.c: one more IsEmptyElement crazyness, that time in
  external parsed entities if substitution is asked.
* python/tests/reader3.py: added a specific test.
Daniel
This commit is contained in:
Daniel Veillard
2003-01-09 23:19:02 +00:00
parent e329fc2467
commit 8f87244206
3 changed files with 47 additions and 3 deletions

View File

@ -5599,10 +5599,13 @@ xmlParseReference(xmlParserCtxtPtr ctxt) {
cur = ent->children;
while (cur != NULL) {
new = xmlCopyNode(cur, 1);
if (firstChild == NULL){
firstChild = new;
if (new != NULL) {
new->_private = cur->_private;
if (firstChild == NULL){
firstChild = new;
}
xmlAddChild(ctxt->node, new);
}
xmlAddChild(ctxt->node, new);
if (cur == ent->last)
break;
cur = cur->next;