From ec6725e9e7bbaef2c37e9abc4caa530d46b4d5e6 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 5 Sep 2002 11:12:45 +0000 Subject: [PATCH] try to make the copy function work for node of type * tree.c: try to make the copy function work for node of type XML_DOCUMENT_FRAG_NODE, they are only created by the DOM layers though, not libxml2 itself. Daniel --- ChangeLog | 6 ++++++ tree.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 66931ff7..3d1a9b75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Sep 5 13:10:57 CEST 2002 Daniel Veillard + + * tree.c: try to make the copy function work for node of + type XML_DOCUMENT_FRAG_NODE, they are only created by the + DOM layers though, not libxml2 itself. + Thu Sep 5 12:57:38 CEST 2002 Daniel Veillard * valid.c: try to provide file and line informations, not all diff --git a/tree.c b/tree.c index 4c05747c..faf33f7a 100644 --- a/tree.c +++ b/tree.c @@ -3046,6 +3046,7 @@ xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent, case XML_TEXT_NODE: case XML_CDATA_SECTION_NODE: case XML_ELEMENT_NODE: + case XML_DOCUMENT_FRAG_NODE: case XML_ENTITY_REF_NODE: case XML_ENTITY_NODE: case XML_PI_NODE: @@ -3065,7 +3066,6 @@ xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent, #endif return((xmlNodePtr) xmlCopyDoc((xmlDocPtr) node, recursive)); case XML_DOCUMENT_TYPE_NODE: - case XML_DOCUMENT_FRAG_NODE: case XML_NOTATION_NODE: case XML_DTD_NODE: case XML_ELEMENT_DECL: