diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-10-28 18:52:57 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-10-28 18:52:57 +0000 |
commit | 7e3f1400ac9d57f37addee2ba21fa9b11580a2b2 (patch) | |
tree | ef357c6f7033bef686ceb27685dfbae60ad7883a | |
parent | b39bc39378c20298e69b965d40f0a4ed8edff4f6 (diff) | |
download | android_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-- | ChangeLog | 5 | ||||
-rw-r--r-- | tree.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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 @@ -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); } |