1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/libxml2/libxml.c.diff Sat Jan 17 22:08:56 2004 +0000
1.3 @@ -0,0 +1,11 @@
1.4 +--- libxml2-2.5.7/python/libxml.c Mon Sep 29 23:39:49 2003
1.5 ++++ libxml2-2.5.7/python/libxml.c Mon Sep 29 23:41:24 2003
1.6 +@@ -2283,7 +2283,7 @@
1.7 + return (NULL);
1.8 + node = (xmlNodePtr) PyxmlNode_Get(pyobj_node);
1.9 +
1.10 +- if ((node == NULL) || (node->type != XML_ELEMENT_NODE)) {
1.11 ++ if ((node == NULL) || ((node->type != XML_ELEMENT_NODE) && (node->type != XML_ATTRIBUTE_NODE))) {
1.12 + Py_INCREF(Py_None);
1.13 + return (Py_None);
1.14 + }