version 1.28, 2000/08/26 19:52:44
|
version 1.29, 2000/08/27 22:38:18
|
Line 37
|
Line 37
|
|
|
void xmlDebugDumpString(FILE *output, const xmlChar *str) { |
void xmlDebugDumpString(FILE *output, const xmlChar *str) { |
int i; |
int i; |
|
if (str == NULL) { |
|
fprintf(output, "(NULL)"); |
|
return; |
|
} |
for (i = 0;i < 40;i++) |
for (i = 0;i < 40;i++) |
if (str[i] == 0) return; |
if (str[i] == 0) return; |
else if (IS_BLANK(str[i])) fputc(' ', output); |
else if (IS_BLANK(str[i])) fputc(' ', output); |
Line 370 void xmlDebugDumpNamespace(FILE *output,
|
Line 374 void xmlDebugDumpNamespace(FILE *output,
|
fprintf(output, shift); |
fprintf(output, shift); |
if (ns->type == XML_GLOBAL_NAMESPACE) |
if (ns->type == XML_GLOBAL_NAMESPACE) |
fprintf(output, "old "); |
fprintf(output, "old "); |
if (ns->prefix != NULL) |
if (ns->href == NULL) { |
fprintf(output, "namespace %s href=", ns->prefix); |
if (ns->prefix != NULL) |
else |
fprintf(output, "incomplete namespace %s href=NULL\n", ns->prefix); |
fprintf(output, "default namespace href="); |
else |
|
fprintf(output, "incomplete default namespace href=NULL\n"); |
|
} else { |
|
if (ns->prefix != NULL) |
|
fprintf(output, "namespace %s href=", ns->prefix); |
|
else |
|
fprintf(output, "default namespace href="); |
|
|
xmlDebugDumpString(output, ns->href); |
xmlDebugDumpString(output, ns->href); |
fprintf(output, "\n"); |
fprintf(output, "\n"); |
|
} |
} |
} |
|
|
void xmlDebugDumpNamespaceList(FILE *output, xmlNsPtr ns, int depth) { |
void xmlDebugDumpNamespaceList(FILE *output, xmlNsPtr ns, int depth) { |