summaryrefslogtreecommitdiff
path: root/relaxng.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-10-26 16:06:51 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-10-26 16:06:51 +0000
commit03a53c34db279cbe4a305d58969beb1f26ff3d19 (patch)
tree332a090013d8a51a14562322dccfd656044e667c /relaxng.c
parent1227fb3cea5a2eb1e0d3789687ebf0377cb60322 (diff)
downloadlibxml2-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 'relaxng.c')
-rw-r--r--relaxng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/relaxng.c b/relaxng.c
index 9c6cf2df..ae6c63df 100644
--- a/relaxng.c
+++ b/relaxng.c
@@ -7024,7 +7024,8 @@ xmlRelaxNGCleanupTree(xmlRelaxNGParserCtxtPtr ctxt, xmlNodePtr root)
} else {
xmlNodePtr node;
- node = xmlNewNode(cur->ns, BAD_CAST "name");
+ node = xmlNewDocNode(cur->doc, cur->ns,
+ BAD_CAST "name", NULL);
if (node != NULL) {
xmlAddPrevSibling(cur->children, node);
text = xmlNewText(name);