1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

patch from Oleg Paraschenko to fix xmlDebugDumpNode() when handled a

* debugXML.c: patch from Oleg Paraschenko to fix xmlDebugDumpNode()
  when handled a namespace node.
Daniel
This commit is contained in:
Daniel Veillard 2005-09-06 22:16:57 +00:00
parent 8240f512a9
commit 7837dd8bc3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Sep 7 00:16:27 CEST 2005 Daniel Veillard <daniel@veillard.com>
* debugXML.c: patch from Oleg Paraschenko to fix xmlDebugDumpNode()
when handled a namespace node.
Sun Sep 4 23:36:45 CEST 2005 Daniel Veillard <daniel@veillard.com>
* NEWS elfgcchack.h testapi.c doc/*: updated the docs and rebuild

View File

@ -1065,7 +1065,8 @@ xmlCtxtDumpNode(xmlDebugCtxtPtr ctxt, xmlNodePtr node)
return;
}
xmlCtxtDumpOneNode(ctxt, node);
if ((node->children != NULL) && (node->type != XML_ENTITY_REF_NODE)) {
if ((node->type != XML_NAMESPACE_DECL) &&
(node->children != NULL) && (node->type != XML_ENTITY_REF_NODE)) {
ctxt->depth++;
xmlCtxtDumpNodeList(ctxt, node->children);
ctxt->depth--;