aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-10-28 18:52:57 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-10-28 18:52:57 +0000
commit7e3f1400ac9d57f37addee2ba21fa9b11580a2b2 (patch)
treeef357c6f7033bef686ceb27685dfbae60ad7883a
parentb39bc39378c20298e69b965d40f0a4ed8edff4f6 (diff)
downloadandroid_external_libxml2-7e3f1400ac9d57f37addee2ba21fa9b11580a2b2.tar.gz
android_external_libxml2-7e3f1400ac9d57f37addee2ba21fa9b11580a2b2.tar.bz2
android_external_libxml2-7e3f1400ac9d57f37addee2ba21fa9b11580a2b2.zip
applied patch from Christian Glahn to allow xmlNewChild() on document
* tree.c: applied patch from Christian Glahn to allow xmlNewChild() on document fragment nodes Daniel
-rw-r--r--ChangeLog5
-rw-r--r--tree.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b8a3634..960903f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 28 13:51:55 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+ * tree.c: applied patch from Christian Glahn to allow
+ xmlNewChild() on document fragment nodes
+
Sat Oct 26 15:27:00 CEST 2002 Daniel Veillard <daniel@veillard.com>
* parser.c: Christian Glahn found a problem with a recent
diff --git a/tree.c b/tree.c
index 1b18ee9a..cf4a6b0f 100644
--- a/tree.c
+++ b/tree.c
@@ -2091,6 +2091,8 @@ xmlNewChild(xmlNodePtr parent, xmlNsPtr ns,
cur = xmlNewDocNode((xmlDocPtr) parent, NULL, name, content);
else
cur = xmlNewDocNode((xmlDocPtr) parent, ns, name, content);
+ } else if (parent->type == XML_DOCUMENT_FRAG_NODE) {
+ cur = xmlNewDocNode( parent->doc, ns, name, content);
} else {
return(NULL);
}