diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-10-26 16:06:51 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-10-26 16:06:51 +0000 |
commit | 03a53c34db279cbe4a305d58969beb1f26ff3d19 (patch) | |
tree | 332a090013d8a51a14562322dccfd656044e667c /xinclude.c | |
parent | 1227fb3cea5a2eb1e0d3789687ebf0377cb60322 (diff) | |
download | libxml2-03a53c34db279cbe4a305d58969beb1f26ff3d19.tar.gz |
added checking for names values and dictionnaries generates a tons of
* debugXML.c include/libxml/xmlerror.h: added checking for names
values and dictionnaries generates a tons of errors
* SAX2.ccatalog.c parser.c relaxng.c tree.c xinclude.c xmlwriter.c
include/libxml/tree.h: fixing the errors in the regression tests
Daniel
Diffstat (limited to 'xinclude.c')
-rw-r--r-- | xinclude.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1872,7 +1872,8 @@ xmlXIncludeLoadFallback(xmlXIncludeCtxtPtr ctxt, xmlNodePtr fallback, int nr) { ret = 0; /* xmlXIncludeDoProcess can return +ve number */ xmlXIncludeFreeContext(newctxt); - ctxt->incTab[nr]->inc = xmlCopyNodeList(fallback->children); + ctxt->incTab[nr]->inc = xmlDocCopyNodeList(ctxt->doc, + fallback->children); } else { ctxt->incTab[nr]->inc = NULL; ctxt->incTab[nr]->emptyFb = 1; /* flag empty callback */ @@ -2134,7 +2135,7 @@ xmlXIncludeIncludeNode(xmlXIncludeCtxtPtr ctxt, int nr) { * XInclude end one */ cur->type = XML_XINCLUDE_START; - end = xmlNewNode(cur->ns, cur->name); + end = xmlNewDocNode(cur->doc, cur->ns, cur->name, NULL); if (end == NULL) { xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_BUILD_FAILED, |