2005-08-15 | paulb | file changeset files shortlog | [project @ 2005-08-15 18:28:56 by paulb] Reorganised the documentation, providing a format more like software such as WebStack. Moved the libxml2macro details into a separate file. Added a PyPI package information file. |
paulb@19 | 1 | --- libxml2-2.5.7/python/libxml.c Mon Sep 29 23:39:49 2003 |
paulb@19 | 2 | +++ libxml2-2.5.7/python/libxml.c Mon Sep 29 23:41:24 2003 |
paulb@19 | 3 | @@ -2283,7 +2283,7 @@ |
paulb@19 | 4 | return (NULL); |
paulb@19 | 5 | node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); |
paulb@19 | 6 | |
paulb@19 | 7 | - if ((node == NULL) || (node->type != XML_ELEMENT_NODE)) { |
paulb@19 | 8 | + if ((node == NULL) || ((node->type != XML_ELEMENT_NODE) && (node->type != XML_ATTRIBUTE_NODE))) { |
paulb@19 | 9 | Py_INCREF(Py_None); |
paulb@19 | 10 | return (Py_None); |
paulb@19 | 11 | } |