2003-09-29 | paulb | file changeset files shortlog | [project @ 2003-09-29 22:47:24 by paulb] Initial revision |
paulb@1 | 1 | --- libxml2-2.5.7/python/libxml.c Mon Sep 29 23:39:49 2003 |
paulb@1 | 2 | +++ libxml2-2.5.7/python/libxml.c Mon Sep 29 23:41:24 2003 |
paulb@1 | 3 | @@ -2283,7 +2283,7 @@ |
paulb@1 | 4 | return (NULL); |
paulb@1 | 5 | node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); |
paulb@1 | 6 | |
paulb@1 | 7 | - if ((node == NULL) || (node->type != XML_ELEMENT_NODE)) { |
paulb@1 | 8 | + if ((node == NULL) || ((node->type != XML_ELEMENT_NODE) && (node->type != XML_ATTRIBUTE_NODE))) { |
paulb@1 | 9 | Py_INCREF(Py_None); |
paulb@1 | 10 | return (Py_None); |
paulb@1 | 11 | } |