1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

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
This commit is contained in:
Daniel Veillard
2002-09-05 11:12:45 +00:00
parent b9cd8b4c3e
commit ec6725e9e7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Thu Sep 5 13:10:57 CEST 2002 Daniel Veillard <daniel@veillard.com>
* 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 <daniel@veillard.com>
* valid.c: try to provide file and line informations, not all

2
tree.c
View File

@ -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: