[xml] Namespace bug in xmlReconciliateNs()



Hi,

In xmlReconciliateNs() when reconciling the attribute namespaces, those attribute namespaces that have already been cached are incorrectly assigned to the node and not the attribute. The following patch corrects this error.

Regards,
Brian Stafford


Index: tree.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/tree.c,v
retrieving revision 1.220
diff -u -r1.220 tree.c
--- tree.c      22 Oct 2002 17:35:33 -0000      1.220
+++ tree.c      28 Oct 2002 16:18:32 -0000
@@ -4778,7 +4778,7 @@
                }
                for (i = 0;i < nbCache;i++) {
                    if (oldNs[i] == attr->ns) {
-                       node->ns = newNs[i];
+                       attr->ns = newNs[i];
                        break;
                    }
                }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]