Lines Matching refs:dtd
203 xmlAddEntity(xmlDtdPtr dtd, const xmlChar *name, int type, in xmlAddEntity() argument
212 if (dtd == NULL) in xmlAddEntity()
214 if (dtd->doc != NULL) in xmlAddEntity()
215 dict = dtd->doc->dict; in xmlAddEntity()
221 if (dtd->entities == NULL) in xmlAddEntity()
222 dtd->entities = xmlHashCreateDict(0, dict); in xmlAddEntity()
223 table = dtd->entities; in xmlAddEntity()
227 if (dtd->pentities == NULL) in xmlAddEntity()
228 dtd->pentities = xmlHashCreateDict(0, dict); in xmlAddEntity()
229 table = dtd->pentities; in xmlAddEntity()
239 ret->doc = dtd->doc; in xmlAddEntity()
305 xmlDtdPtr dtd; in xmlAddDtdEntity() local
317 dtd = doc->extSubset; in xmlAddDtdEntity()
318 ret = xmlAddEntity(dtd, name, type, ExternalID, SystemID, content); in xmlAddDtdEntity()
324 ret->parent = dtd; in xmlAddDtdEntity()
325 ret->doc = dtd->doc; in xmlAddDtdEntity()
326 if (dtd->last == NULL) { in xmlAddDtdEntity()
327 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddDtdEntity()
329 dtd->last->next = (xmlNodePtr) ret; in xmlAddDtdEntity()
330 ret->prev = dtd->last; in xmlAddDtdEntity()
331 dtd->last = (xmlNodePtr) ret; in xmlAddDtdEntity()
354 xmlDtdPtr dtd; in xmlAddDocEntity() local
366 dtd = doc->intSubset; in xmlAddDocEntity()
367 ret = xmlAddEntity(dtd, name, type, ExternalID, SystemID, content); in xmlAddDocEntity()
373 ret->parent = dtd; in xmlAddDocEntity()
374 ret->doc = dtd->doc; in xmlAddDocEntity()
375 if (dtd->last == NULL) { in xmlAddDocEntity()
376 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddDocEntity()
378 dtd->last->next = (xmlNodePtr) ret; in xmlAddDocEntity()
379 ret->prev = dtd->last; in xmlAddDocEntity()
380 dtd->last = (xmlNodePtr) ret; in xmlAddDocEntity()