diff options
author | William M. Brack <wbrack@src.gnome.org> | 2004-02-08 04:12:49 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2004-02-08 04:12:49 +0000 |
commit | 95af594b0bd28ad8847de96ec00ff9244bd94da7 (patch) | |
tree | e1c5e8e38c37fbce11f797759a8bc7ab44e7b728 /python/libxml.c | |
parent | 6bdacd7aee43a318575ffbb2b156c7c180d926ff (diff) | |
download | libxml2-95af594b0bd28ad8847de96ec00ff9244bd94da7.tar.gz |
added a small hack to fix interference between my fixes for bugs 132585
* xinclude.c: added a small hack to fix interference between
my fixes for bugs 132585 and 132588.
* python/libxml.c: fixed problem with serialization of namespace
reported on the mailing list by Anthony Carrico
Diffstat (limited to 'python/libxml.c')
-rw-r--r-- | python/libxml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/libxml.c b/python/libxml.c index 225078a2..52decf45 100644 --- a/python/libxml.c +++ b/python/libxml.c @@ -2473,7 +2473,10 @@ libxml_serializeNode(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) (void) xmlOutputBufferClose(buf); py_retval = libxml_charPtrWrap((char *) c_retval); } else { - doc = node->doc; + if (node->type == XML_NAMESPACE_DECL) + doc = NULL; + else + doc = node->doc; if ((doc == NULL) || (doc->type == XML_DOCUMENT_NODE)) { xmlOutputBufferPtr buf; xmlCharEncodingHandlerPtr handler = NULL; |