1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-16 07:21:58 +03:00

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.
This commit is contained in:
William M. Brack
2004-10-15 18:25:33 +00:00
parent c6095788c4
commit 9638d4c20f
2 changed files with 13 additions and 4 deletions

View File

@ -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);
}
}