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
diff --git a/tree.c b/tree.c
index d879e54..83bf621 100644
--- a/tree.c
+++ b/tree.c
@@ -4915,8 +4915,6 @@
* One need to have
* - same attribute names
* - and the attribute carrying that namespace
- * or
- * no namespace on the attribute and the element carrying it
*/
if ((xmlStrEqual(prop->name, name)) &&
((prop->ns != NULL) && (xmlStrEqual(prop->ns->href, nameSpace)))) {
@@ -5210,13 +5208,9 @@
* One need to have
* - same attribute names
* - and the attribute carrying that namespace
- * or
- * no namespace on the attribute and the element carrying it
*/
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 (prop->children != NULL)
xmlFreeNodeList(prop->children);
prop->children = NULL;