summaryrefslogtreecommitdiff
path: root/debugXML.c
diff options
context:
space:
mode:
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/debugXML.c b/debugXML.c
index 59529d6..3985ad3 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -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--;