From 0bf2900b5042d68b65b6a1e09bc9b5395e936e6e Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 1 Aug 2002 12:54:11 +0000 Subject: [PATCH] trying to fix a problem in namespaced attribute handling raised by * tree.c: trying to fix a problem in namespaced attribute handling raised by Christian Glahn Daniel --- ChangeLog | 5 +++++ tree.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3da13049..cd78bf05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 1 14:50:28 CEST 2002 Daniel Veillard + + * tree.c: trying to fix a problem in namespaced attribute handling + raised by Christian Glahn + Thu Aug 1 12:17:30 CEST 2002 Daniel Veillard * encoding.c include/libxml/encoding.h: Opening the interface diff --git a/tree.c b/tree.c index 83bf621c..13ebe1ef 100644 --- a/tree.c +++ b/tree.c @@ -5261,9 +5261,7 @@ xmlUnsetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name) { return(-1); while (prop != NULL) { if ((xmlStrEqual(prop->name, name)) && - (((prop->ns == NULL) && (node->ns != NULL) && - (xmlStrEqual(node->ns->href, ns->href))) || - ((prop->ns != NULL) && (xmlStrEqual(prop->ns->href, ns->href))))) { + (prop->ns != NULL) && (xmlStrEqual(prop->ns->href, ns->href))) { if (prev == NULL) node->properties = prop->next; else