Lines Matching refs:dtd

29 static xmlElementPtr xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name,
1388 xmlDtdPtr dtd, const xmlChar *name, in xmlAddElementDecl() argument
1396 if (dtd == NULL) { in xmlAddElementDecl()
1453 table = (xmlElementTablePtr) dtd->elements; in xmlAddElementDecl()
1457 if (dtd->doc != NULL) in xmlAddElementDecl()
1458 dict = dtd->doc->dict; in xmlAddElementDecl()
1460 dtd->elements = (void *) table; in xmlAddElementDecl()
1476 if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) { in xmlAddElementDecl()
1477 ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns); in xmlAddElementDecl()
1481 xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL); in xmlAddElementDecl()
1497 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, in xmlAddElementDecl()
1548 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, in xmlAddElementDecl()
1580 ret->content = xmlCopyDocElementContent(dtd->doc, content); in xmlAddElementDecl()
1586 ret->parent = dtd; in xmlAddElementDecl()
1587 ret->doc = dtd->doc; in xmlAddElementDecl()
1588 if (dtd->last == NULL) { in xmlAddElementDecl()
1589 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddElementDecl()
1591 dtd->last->next = (xmlNodePtr) ret; in xmlAddElementDecl()
1592 ret->prev = dtd->last; in xmlAddElementDecl()
1593 dtd->last = (xmlNodePtr) ret; in xmlAddElementDecl()
1939 xmlDtdPtr dtd, const xmlChar *elem, in xmlAddAttributeDecl() argument
1948 if (dtd == NULL) { in xmlAddAttributeDecl()
1960 if (dtd->doc != NULL) in xmlAddAttributeDecl()
1961 dict = dtd->doc->dict; in xmlAddAttributeDecl()
1996 (!xmlValidateAttributeValueInternal(dtd->doc, type, defaultValue))) { in xmlAddAttributeDecl()
1997 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_DEFAULT, in xmlAddAttributeDecl()
2010 if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) && in xmlAddAttributeDecl()
2011 (dtd->doc->intSubset != NULL) && in xmlAddAttributeDecl()
2012 (dtd->doc->intSubset->attributes != NULL)) { in xmlAddAttributeDecl()
2013 ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem); in xmlAddAttributeDecl()
2023 table = (xmlAttributeTablePtr) dtd->attributes; in xmlAddAttributeDecl()
2026 dtd->attributes = (void *) table; in xmlAddAttributeDecl()
2054 ret->doc = dtd->doc; in xmlAddAttributeDecl()
2082 xmlErrValidWarning(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_REDEFINED, in xmlAddAttributeDecl()
2094 elemDef = xmlGetDtdElementDesc2(dtd, elem, 1); in xmlAddAttributeDecl()
2100 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_MULTIPLE_ID, in xmlAddAttributeDecl()
2141 ret->parent = dtd; in xmlAddAttributeDecl()
2142 if (dtd->last == NULL) { in xmlAddAttributeDecl()
2143 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2145 dtd->last->next = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2146 ret->prev = dtd->last; in xmlAddAttributeDecl()
2147 dtd->last = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2365 xmlAddNotationDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, in xmlAddNotationDecl() argument
2371 if (dtd == NULL) { in xmlAddNotationDecl()
2384 table = (xmlNotationTablePtr) dtd->notations; in xmlAddNotationDecl()
2387 if (dtd->doc != NULL) in xmlAddNotationDecl()
2388 dict = dtd->doc->dict; in xmlAddNotationDecl()
2390 dtd->notations = table = xmlHashCreateDict(0, dict); in xmlAddNotationDecl()
3176 xmlGetDtdElementDesc(xmlDtdPtr dtd, const xmlChar *name) { in xmlGetDtdElementDesc() argument
3181 if ((dtd == NULL) || (name == NULL)) return(NULL); in xmlGetDtdElementDesc()
3182 if (dtd->elements == NULL) in xmlGetDtdElementDesc()
3184 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc()
3206 xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name, int create) { in xmlGetDtdElementDesc2() argument
3211 if (dtd == NULL) return(NULL); in xmlGetDtdElementDesc2()
3212 if (dtd->elements == NULL) { in xmlGetDtdElementDesc2()
3215 if (dtd->doc != NULL) in xmlGetDtdElementDesc2()
3216 dict = dtd->doc->dict; in xmlGetDtdElementDesc2()
3223 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc2()
3226 dtd->elements = (void *) table; in xmlGetDtdElementDesc2()
3233 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc2()
3274 xmlGetDtdQElementDesc(xmlDtdPtr dtd, const xmlChar *name, in xmlGetDtdQElementDesc() argument
3278 if (dtd == NULL) return(NULL); in xmlGetDtdQElementDesc()
3279 if (dtd->elements == NULL) return(NULL); in xmlGetDtdQElementDesc()
3280 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdQElementDesc()
3298 xmlGetDtdAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name) { in xmlGetDtdAttrDesc() argument
3303 if (dtd == NULL) return(NULL); in xmlGetDtdAttrDesc()
3304 if (dtd->attributes == NULL) return(NULL); in xmlGetDtdAttrDesc()
3306 table = (xmlAttributeTablePtr) dtd->attributes; in xmlGetDtdAttrDesc()
3335 xmlGetDtdQAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name, in xmlGetDtdQAttrDesc() argument
3339 if (dtd == NULL) return(NULL); in xmlGetDtdQAttrDesc()
3340 if (dtd->attributes == NULL) return(NULL); in xmlGetDtdQAttrDesc()
3341 table = (xmlAttributeTablePtr) dtd->attributes; in xmlGetDtdQAttrDesc()
3357 xmlGetDtdNotationDesc(xmlDtdPtr dtd, const xmlChar *name) { in xmlGetDtdNotationDesc() argument
3360 if (dtd == NULL) return(NULL); in xmlGetDtdNotationDesc()
3361 if (dtd->notations == NULL) return(NULL); in xmlGetDtdNotationDesc()
3362 table = (xmlNotationTablePtr) dtd->notations; in xmlGetDtdNotationDesc()
6654 xmlValidateDtd(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlDtdPtr dtd) { in xmlValidateDtd() argument
6659 if (dtd == NULL) return(0); in xmlValidateDtd()
6663 doc->extSubset = dtd; in xmlValidateDtd()
6799 xmlDtdPtr dtd; in xmlValidateDtdFinal() local
6808 dtd = doc->intSubset; in xmlValidateDtdFinal()
6809 if ((dtd != NULL) && (dtd->attributes != NULL)) { in xmlValidateDtdFinal()
6810 table = (xmlAttributeTablePtr) dtd->attributes; in xmlValidateDtdFinal()
6813 if ((dtd != NULL) && (dtd->entities != NULL)) { in xmlValidateDtdFinal()
6814 entities = (xmlEntitiesTablePtr) dtd->entities; in xmlValidateDtdFinal()
6817 dtd = doc->extSubset; in xmlValidateDtdFinal()
6818 if ((dtd != NULL) && (dtd->attributes != NULL)) { in xmlValidateDtdFinal()
6819 table = (xmlAttributeTablePtr) dtd->attributes; in xmlValidateDtdFinal()
6822 if ((dtd != NULL) && (dtd->entities != NULL)) { in xmlValidateDtdFinal()
6823 entities = (xmlEntitiesTablePtr) dtd->entities; in xmlValidateDtdFinal()