[xml] libxml2 xmlDocSetRootElement does not set root element

Date view Thread view Subject view Author view

From: Deja User (planta_hb@my-deja.com)
Date: Wed Jan 10 2001 - 04:56:15 EST


('binary' encoding is not supported, stored as-is) Package: gnome-xml
Version: 2.2.4

There is a problem with libxml2-2.2.4 (also libxml2-2.2.10) that affects xmlDocSetRootElement. It is related to the problem of moving nodes between documents described in Todo.

The function xmlDocSetRootElement uses xmlReplaceNode.
The element doc->children is not updated by xmlReplaceNode.
The element doc->children is not updated by xmlUnlinkNode.
The function xmlDocGetRootElement relies on doc->children.

Henry Böhlert - Software Developer
PLANTA Projektmanagementsysteme GmbH
D-76135 Karlsruhe

------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jan 10 2001 - 05:44:03 EST