23 Nov 2006 23 Nov '06
Thanks for the reply.
On Wed, Nov 22, 2006 at 09:40:43PM +0100, Stefan Behnel wrote:
It's known - though not really a bug but rather an inconvenience. Currently, we use a function in libxml2 called xmlReconciliateNs() to fix the namespaces when merging trees. This function shows the above behaviour. To fix this, we'd have to implement our own version, which is a bit tricky and just wasn't important enough to try to get right so far. Note that even libxml2 had a (minor) bug up to version 2.6.26 here, so it's really not trivial to get this kind of thing right.
It's not that important, and I'll find a way to use SubElement instead of append. I just wanted to make sure that you know about this somewhat unexpected behaviour.