Lines Matching refs:dtd

208 xmlAddEntity(xmlDtdPtr dtd, const xmlChar *name, int type,  in xmlAddEntity()  argument
217 if (dtd == NULL) in xmlAddEntity()
219 if (dtd->doc != NULL) in xmlAddEntity()
220 dict = dtd->doc->dict; in xmlAddEntity()
226 if (dtd->entities == NULL) in xmlAddEntity()
227 dtd->entities = xmlHashCreateDict(0, dict); in xmlAddEntity()
228 table = dtd->entities; in xmlAddEntity()
232 if (dtd->pentities == NULL) in xmlAddEntity()
233 dtd->pentities = xmlHashCreateDict(0, dict); in xmlAddEntity()
234 table = dtd->pentities; in xmlAddEntity()
244 ret->doc = dtd->doc; in xmlAddEntity()
310 xmlDtdPtr dtd; in xmlAddDtdEntity() local
322 dtd = doc->extSubset; in xmlAddDtdEntity()
323 ret = xmlAddEntity(dtd, name, type, ExternalID, SystemID, content); in xmlAddDtdEntity()
329 ret->parent = dtd; in xmlAddDtdEntity()
330 ret->doc = dtd->doc; in xmlAddDtdEntity()
331 if (dtd->last == NULL) { in xmlAddDtdEntity()
332 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddDtdEntity()
334 dtd->last->next = (xmlNodePtr) ret; in xmlAddDtdEntity()
335 ret->prev = dtd->last; in xmlAddDtdEntity()
336 dtd->last = (xmlNodePtr) ret; in xmlAddDtdEntity()
359 xmlDtdPtr dtd; in xmlAddDocEntity() local
371 dtd = doc->intSubset; in xmlAddDocEntity()
372 ret = xmlAddEntity(dtd, name, type, ExternalID, SystemID, content); in xmlAddDocEntity()
378 ret->parent = dtd; in xmlAddDocEntity()
379 ret->doc = dtd->doc; in xmlAddDocEntity()
380 if (dtd->last == NULL) { in xmlAddDocEntity()
381 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddDocEntity()
383 dtd->last->next = (xmlNodePtr) ret; in xmlAddDocEntity()
384 ret->prev = dtd->last; in xmlAddDocEntity()
385 dtd->last = (xmlNodePtr) ret; in xmlAddDocEntity()