version 1.34, 1999/02/20 20:39:52
|
version 1.35, 1999/02/21 15:38:57
|
Line 271 xmlNewDtd(xmlDocPtr doc, const CHAR *nam
|
Line 271 xmlNewDtd(xmlDocPtr doc, const CHAR *nam
|
cur->SystemID = xmlStrdup(SystemID); |
cur->SystemID = xmlStrdup(SystemID); |
else |
else |
cur->SystemID = NULL; |
cur->SystemID = NULL; |
|
cur->notations = NULL; |
cur->elements = NULL; |
cur->elements = NULL; |
cur->attributes = NULL; |
cur->attributes = NULL; |
cur->entities = NULL; |
cur->entities = NULL; |
Line 323 xmlCreateIntSubset(xmlDocPtr doc, const
|
Line 324 xmlCreateIntSubset(xmlDocPtr doc, const
|
cur->SystemID = xmlStrdup(SystemID); |
cur->SystemID = xmlStrdup(SystemID); |
else |
else |
cur->SystemID = NULL; |
cur->SystemID = NULL; |
|
cur->notations = NULL; |
cur->elements = NULL; |
cur->elements = NULL; |
cur->attributes = NULL; |
cur->attributes = NULL; |
cur->entities = NULL; |
cur->entities = NULL; |
Line 347 xmlFreeDtd(xmlDtdPtr cur) {
|
Line 349 xmlFreeDtd(xmlDtdPtr cur) {
|
if (cur->name != NULL) free((char *) cur->name); |
if (cur->name != NULL) free((char *) cur->name); |
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->notations != NULL) |
|
xmlFreeNotationTable((xmlNotationTablePtr) cur->notations); |
if (cur->elements != NULL) |
if (cur->elements != NULL) |
xmlFreeElementTable((xmlElementTablePtr) cur->elements); |
xmlFreeElementTable((xmlElementTablePtr) cur->elements); |
if (cur->attributes != NULL) |
if (cur->attributes != NULL) |
Line 1640 xmlCopyDtd(xmlDtdPtr dtd) {
|
Line 1644 xmlCopyDtd(xmlDtdPtr dtd) {
|
if (dtd->entities != NULL) |
if (dtd->entities != NULL) |
ret->entities = (void *) xmlCopyEntitiesTable( |
ret->entities = (void *) xmlCopyEntitiesTable( |
(xmlEntitiesTablePtr) dtd->entities); |
(xmlEntitiesTablePtr) dtd->entities); |
|
if (dtd->notations != NULL) |
|
ret->notations = (void *) xmlCopyNotationTable( |
|
(xmlNotationTablePtr) dtd->notations); |
|
if (dtd->elements != NULL) |
|
ret->elements = (void *) xmlCopyElementTable( |
|
(xmlElementTablePtr) dtd->elements); |
|
if (dtd->attributes != NULL) |
|
ret->attributes = (void *) xmlCopyAttributeTable( |
|
(xmlAttributeTablePtr) dtd->attributes); |
/* |
/* |
* TODO: support for Element definitions. |
* TODO: support for Element definitions. |
*/ |
*/ |
Line 2279 xmlDtdDump(xmlDocPtr doc) {
|
Line 2292 xmlDtdDump(xmlDocPtr doc) {
|
xmlBufferWriteChar("\""); |
xmlBufferWriteChar("\""); |
} |
} |
if ((cur->entities == NULL) && (cur->elements == NULL) && |
if ((cur->entities == NULL) && (cur->elements == NULL) && |
(cur->attributes == NULL)) { |
(cur->attributes == NULL) && (cur->notations == 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->notations != NULL) |
|
xmlDumpNotationTable((xmlNotationTablePtr) cur->notations); |
if (cur->elements != NULL) |
if (cur->elements != NULL) |
xmlDumpElementTable((xmlElementTablePtr) cur->elements); |
xmlDumpElementTable((xmlElementTablePtr) cur->elements); |
if (cur->attributes != NULL) |
if (cur->attributes != NULL) |