version 1.41, 2000/10/09 12:27:32
|
version 1.42, 2000/10/22 16:56:52
|
Line 773 void xmlDebugDumpDTD(FILE *output, xmlDt
|
Line 773 void xmlDebugDumpDTD(FILE *output, xmlDt
|
|
|
void xmlDebugDumpEntities(FILE *output, xmlDocPtr doc) { |
void xmlDebugDumpEntities(FILE *output, xmlDocPtr doc) { |
int i; |
int i; |
|
xmlHashEntryPtr ent; |
xmlEntityPtr cur; |
xmlEntityPtr cur; |
|
|
if (output == NULL) output = stdout; |
if (output == NULL) output = stdout; |
Line 828 void xmlDebugDumpEntities(FILE *output,
|
Line 829 void xmlDebugDumpEntities(FILE *output,
|
xmlEntitiesTablePtr table = (xmlEntitiesTablePtr) |
xmlEntitiesTablePtr table = (xmlEntitiesTablePtr) |
doc->intSubset->entities; |
doc->intSubset->entities; |
fprintf(output, "Entities in internal subset\n"); |
fprintf(output, "Entities in internal subset\n"); |
for (i = 0;i < table->max_entities;i++) { |
for (i = 0;i < table->size;i++) { |
cur = table->table[i]; |
ent = table->table[i]; |
while (cur != NULL) { |
while (ent != NULL) { |
|
cur = (xmlEntityPtr) ent->payload; |
fprintf(output, "%d : %s : ", i, cur->name); |
fprintf(output, "%d : %s : ", i, cur->name); |
switch (cur->etype) { |
switch (cur->etype) { |
case XML_INTERNAL_GENERAL_ENTITY: |
case XML_INTERNAL_GENERAL_ENTITY: |
Line 861 void xmlDebugDumpEntities(FILE *output,
|
Line 863 void xmlDebugDumpEntities(FILE *output,
|
if (cur->content != NULL) |
if (cur->content != NULL) |
fprintf(output, "\n content \"%s\"", cur->content); |
fprintf(output, "\n content \"%s\"", cur->content); |
fprintf(output, "\n"); |
fprintf(output, "\n"); |
cur = cur->nexte; |
ent = ent->next; |
} |
} |
} |
} |
} else |
} else |
Line 870 void xmlDebugDumpEntities(FILE *output,
|
Line 872 void xmlDebugDumpEntities(FILE *output,
|
xmlEntitiesTablePtr table = (xmlEntitiesTablePtr) |
xmlEntitiesTablePtr table = (xmlEntitiesTablePtr) |
doc->extSubset->entities; |
doc->extSubset->entities; |
fprintf(output, "Entities in external subset\n"); |
fprintf(output, "Entities in external subset\n"); |
for (i = 0;i < table->max_entities;i++) { |
for (i = 0;i < table->size;i++) { |
cur = table->table[i]; |
ent = table->table[i]; |
while (cur != NULL) { |
while (ent != NULL) { |
|
cur = (xmlEntityPtr) ent->payload; |
fprintf(output, "%d : %s : ", i, cur->name); |
fprintf(output, "%d : %s : ", i, cur->name); |
switch (cur->etype) { |
switch (cur->etype) { |
case XML_INTERNAL_GENERAL_ENTITY: |
case XML_INTERNAL_GENERAL_ENTITY: |
Line 903 void xmlDebugDumpEntities(FILE *output,
|
Line 906 void xmlDebugDumpEntities(FILE *output,
|
if (cur->content != NULL) |
if (cur->content != NULL) |
fprintf(output, "\n content \"%s\"", cur->content); |
fprintf(output, "\n content \"%s\"", cur->content); |
fprintf(output, "\n"); |
fprintf(output, "\n"); |
cur = cur->nexte; |
ent = ent->next; |
} |
} |
} |
} |
} else |
} else |