mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
- HTMLparser.c: fixed loop on invalid char in scripts
- parser.c: update to description of xmlIOParseDTD() - libxml.m4 xmlversion.h.in: changes contributed by Michael Schmeing <m.schmeing@internet-factory.de> - configure.in: preparing for 2.2.7 - Makefile.am: trying to avoid config.h and acconfig.h being included in the distrib - rebuilt the docs - configure.in: released 2.2.7 Daniel
This commit is contained in:
10
debugXML.c
10
debugXML.c
@ -377,8 +377,10 @@ void xmlDebugDumpNamespace(FILE *output, xmlNsPtr ns, int depth) {
|
||||
shift[2 * i] = shift[2 * i + 1] = 0;
|
||||
|
||||
fprintf(output, shift);
|
||||
if (ns->type == XML_GLOBAL_NAMESPACE)
|
||||
fprintf(output, "old ");
|
||||
if (ns->type != XML_NAMESPACE_DECL) {
|
||||
fprintf(output, "invalid namespace node %d\n", ns->type);
|
||||
return;
|
||||
}
|
||||
if (ns->href == NULL) {
|
||||
if (ns->prefix != NULL)
|
||||
fprintf(output, "incomplete namespace %s href=NULL\n", ns->prefix);
|
||||
@ -571,6 +573,9 @@ void xmlDebugDumpOneNode(FILE *output, xmlNodePtr node, int depth) {
|
||||
case XML_ENTITY_DECL:
|
||||
xmlDebugDumpEntityDecl(output, (xmlEntityPtr) node, depth);
|
||||
return;
|
||||
case XML_NAMESPACE_DECL:
|
||||
xmlDebugDumpNamespace(output, (xmlNsPtr) node, depth);
|
||||
return;
|
||||
default:
|
||||
fprintf(output, shift);
|
||||
fprintf(output, "NODE_%d !!!\n", node->type);
|
||||
@ -911,6 +916,7 @@ static int xmlLsCountNode(xmlNodePtr node) {
|
||||
case XML_ELEMENT_DECL:
|
||||
case XML_ATTRIBUTE_DECL:
|
||||
case XML_ENTITY_DECL:
|
||||
case XML_NAMESPACE_DECL:
|
||||
ret = 1;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user