From 9638d4c20fe45879eab4783905e09b8442f1fcbe Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Fri, 15 Oct 2004 18:25:33 +0000 Subject: excluded a few nodes (with no content) from the string check routine. * debugXML.c: excluded a few nodes (with no content) from the string check routine. --- debugXML.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'debugXML.c') diff --git a/debugXML.c b/debugXML.c index 9b7163d1..afc0114b 100644 --- a/debugXML.c +++ b/debugXML.c @@ -63,8 +63,9 @@ xmlCtxtDumpInitCtxt(xmlDebugCtxtPtr ctxt) } static void -xmlCtxtDumpCleanCtxt(xmlDebugCtxtPtr ctxt) +xmlCtxtDumpCleanCtxt(xmlDebugCtxtPtr ctxt ATTRIBUTE_UNUSED) { + /* remove the ATTRIBUTE_UNUSED when this is added */ } /** @@ -283,10 +284,13 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) { } if ((node->type != XML_ELEMENT_NODE) && - (node->type != XML_HTML_DOCUMENT_NODE) && - (node->type != XML_DOCUMENT_NODE)) { + (node->type != XML_ATTRIBUTE_NODE) && + (node->type != XML_ATTRIBUTE_DECL) && + (node->type != XML_DTD_NODE) && + (node->type != XML_HTML_DOCUMENT_NODE) && + (node->type != XML_DOCUMENT_NODE)) { if (node->content != NULL) - xmlCtxtCheckString(ctxt, (const char *) node->content); + xmlCtxtCheckString(ctxt, (const xmlChar *) node->content); } } -- cgit v1.2.1