version 1.32, 1999/01/03 12:26:55
|
version 1.33, 1999/01/31 20:56:34
|
Line 20
|
Line 20
|
|
|
#include "tree.h" |
#include "tree.h" |
#include "entities.h" |
#include "entities.h" |
|
#include "valid.h" |
|
|
static CHAR xmlStringText[] = { 't', 'e', 'x', 't', 0 }; |
static CHAR xmlStringText[] = { 't', 'e', 'x', 't', 0 }; |
int oldXMLWDcompatibility = 0; |
int oldXMLWDcompatibility = 0; |
Line 345 xmlFreeDtd(xmlDtdPtr cur) {
|
Line 346 xmlFreeDtd(xmlDtdPtr cur) {
|
if (cur->SystemID != NULL) free((char *) cur->SystemID); |
if (cur->SystemID != NULL) free((char *) cur->SystemID); |
if (cur->ExternalID != NULL) free((char *) cur->ExternalID); |
if (cur->ExternalID != NULL) free((char *) cur->ExternalID); |
if (cur->elements != NULL) |
if (cur->elements != NULL) |
fprintf(stderr, "xmlFreeDtd: cur->elements != NULL !!! \n"); |
xmlFreeElementTable((xmlElementTablePtr) cur->elements); |
if (cur->entities != NULL) |
if (cur->entities != NULL) |
xmlFreeEntitiesTable((xmlEntitiesTablePtr) cur->entities); |
xmlFreeEntitiesTable((xmlEntitiesTablePtr) cur->entities); |
memset(cur, -1, sizeof(xmlDtd)); |
memset(cur, -1, sizeof(xmlDtd)); |
Line 2268 xmlDtdDump(xmlDocPtr doc) {
|
Line 2269 xmlDtdDump(xmlDocPtr doc) {
|
xmlBufferWriteCHAR(cur->SystemID); |
xmlBufferWriteCHAR(cur->SystemID); |
xmlBufferWriteChar("\""); |
xmlBufferWriteChar("\""); |
} |
} |
if (cur->entities == NULL) { |
if ((cur->entities == NULL) && (cur->elements == NULL)) { |
xmlBufferWriteChar(">\n"); |
xmlBufferWriteChar(">\n"); |
return; |
return; |
} |
} |
xmlBufferWriteChar(" [\n"); |
xmlBufferWriteChar(" [\n"); |
if (cur->entities != NULL) |
if (cur->entities != NULL) |
xmlDumpEntitiesTable((xmlEntitiesTablePtr) cur->entities); |
xmlDumpEntitiesTable((xmlEntitiesTablePtr) cur->entities); |
|
if (cur->elements != NULL) |
|
xmlDumpElementTable((xmlElementTablePtr) cur->elements); |
xmlBufferWriteChar("]"); |
xmlBufferWriteChar("]"); |
|
|
/* TODO !!! a lot more things to dump ... */ |
/* TODO !!! a lot more things to dump ... */ |