[libxml2] Fix lost namespace when copying node * tree.c: reconcile namespace if not found
- From: Rob Richards <rrichard src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libxml2] Fix lost namespace when copying node * tree.c: reconcile namespace if not found
- Date: Fri, 29 Jan 2010 18:33:16 +0000 (UTC)
commit ddb01cbf61104e1f746c2224316881e4e4b2b233
Author: Rob Richards <rrichards cdatazone org>
Date: Fri Jan 29 13:32:12 2010 -0500
Fix lost namespace when copying node
* tree.c: reconcile namespace if not found
tree.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tree.c b/tree.c
index 3b66f97..6872209 100644
--- a/tree.c
+++ b/tree.c
@@ -4188,6 +4188,8 @@ xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
while (root->parent != NULL) root = root->parent;
ret->ns = xmlNewNs(root, ns->href, ns->prefix);
+ } else {
+ ret->ns = xmlNewReconciliedNs(doc, ret, node->ns);
}
} else {
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]