Lines Matching refs:dtd
29 static xmlElementPtr xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name,
640 xmlAttributePtr xmlScanAttributeDecl(xmlDtdPtr dtd, const xmlChar *elem);
1384 xmlDtdPtr dtd, const xmlChar *name, in xmlAddElementDecl() argument
1392 if (dtd == NULL) { in xmlAddElementDecl()
1449 table = (xmlElementTablePtr) dtd->elements; in xmlAddElementDecl()
1453 if (dtd->doc != NULL) in xmlAddElementDecl()
1454 dict = dtd->doc->dict; in xmlAddElementDecl()
1456 dtd->elements = (void *) table; in xmlAddElementDecl()
1472 if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) { in xmlAddElementDecl()
1473 ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns); in xmlAddElementDecl()
1477 xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL); in xmlAddElementDecl()
1493 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, in xmlAddElementDecl()
1544 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, in xmlAddElementDecl()
1576 ret->content = xmlCopyDocElementContent(dtd->doc, content); in xmlAddElementDecl()
1582 ret->parent = dtd; in xmlAddElementDecl()
1583 ret->doc = dtd->doc; in xmlAddElementDecl()
1584 if (dtd->last == NULL) { in xmlAddElementDecl()
1585 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddElementDecl()
1587 dtd->last->next = (xmlNodePtr) ret; in xmlAddElementDecl()
1588 ret->prev = dtd->last; in xmlAddElementDecl()
1589 dtd->last = (xmlNodePtr) ret; in xmlAddElementDecl()
1862 xmlScanAttributeDecl(xmlDtdPtr dtd, const xmlChar *elem) { in xmlScanAttributeDecl() argument
1866 if (dtd == NULL) { in xmlScanAttributeDecl()
1872 table = (xmlAttributeTablePtr) dtd->attributes; in xmlScanAttributeDecl()
1975 xmlDtdPtr dtd, const xmlChar *elem, in xmlAddAttributeDecl() argument
1984 if (dtd == NULL) { in xmlAddAttributeDecl()
1996 if (dtd->doc != NULL) in xmlAddAttributeDecl()
1997 dict = dtd->doc->dict; in xmlAddAttributeDecl()
2032 (!xmlValidateAttributeValueInternal(dtd->doc, type, defaultValue))) { in xmlAddAttributeDecl()
2033 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_DEFAULT, in xmlAddAttributeDecl()
2046 if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) && in xmlAddAttributeDecl()
2047 (dtd->doc->intSubset != NULL) && in xmlAddAttributeDecl()
2048 (dtd->doc->intSubset->attributes != NULL)) { in xmlAddAttributeDecl()
2049 ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem); in xmlAddAttributeDecl()
2059 table = (xmlAttributeTablePtr) dtd->attributes; in xmlAddAttributeDecl()
2062 dtd->attributes = (void *) table; in xmlAddAttributeDecl()
2090 ret->doc = dtd->doc; in xmlAddAttributeDecl()
2118 xmlErrValidWarning(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_REDEFINED, in xmlAddAttributeDecl()
2130 elemDef = xmlGetDtdElementDesc2(dtd, elem, 1); in xmlAddAttributeDecl()
2136 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_MULTIPLE_ID, in xmlAddAttributeDecl()
2177 ret->parent = dtd; in xmlAddAttributeDecl()
2178 if (dtd->last == NULL) { in xmlAddAttributeDecl()
2179 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2181 dtd->last->next = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2182 ret->prev = dtd->last; in xmlAddAttributeDecl()
2183 dtd->last = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2395 xmlAddNotationDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, in xmlAddNotationDecl() argument
2401 if (dtd == NULL) { in xmlAddNotationDecl()
2414 table = (xmlNotationTablePtr) dtd->notations; in xmlAddNotationDecl()
2417 if (dtd->doc != NULL) in xmlAddNotationDecl()
2418 dict = dtd->doc->dict; in xmlAddNotationDecl()
2420 dtd->notations = table = xmlHashCreateDict(0, dict); in xmlAddNotationDecl()
3194 xmlGetDtdElementDesc(xmlDtdPtr dtd, const xmlChar *name) { in xmlGetDtdElementDesc() argument
3199 if ((dtd == NULL) || (name == NULL)) return(NULL); in xmlGetDtdElementDesc()
3200 if (dtd->elements == NULL) in xmlGetDtdElementDesc()
3202 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc()
3224 xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name, int create) { in xmlGetDtdElementDesc2() argument
3229 if (dtd == NULL) return(NULL); in xmlGetDtdElementDesc2()
3230 if (dtd->elements == NULL) { in xmlGetDtdElementDesc2()
3233 if (dtd->doc != NULL) in xmlGetDtdElementDesc2()
3234 dict = dtd->doc->dict; in xmlGetDtdElementDesc2()
3241 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc2()
3244 dtd->elements = (void *) table; in xmlGetDtdElementDesc2()
3251 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc2()
3292 xmlGetDtdQElementDesc(xmlDtdPtr dtd, const xmlChar *name, in xmlGetDtdQElementDesc() argument
3296 if (dtd == NULL) return(NULL); in xmlGetDtdQElementDesc()
3297 if (dtd->elements == NULL) return(NULL); in xmlGetDtdQElementDesc()
3298 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdQElementDesc()
3316 xmlGetDtdAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name) { in xmlGetDtdAttrDesc() argument
3321 if (dtd == NULL) return(NULL); in xmlGetDtdAttrDesc()
3322 if (dtd->attributes == NULL) return(NULL); in xmlGetDtdAttrDesc()
3324 table = (xmlAttributeTablePtr) dtd->attributes; in xmlGetDtdAttrDesc()
3353 xmlGetDtdQAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name, in xmlGetDtdQAttrDesc() argument
3357 if (dtd == NULL) return(NULL); in xmlGetDtdQAttrDesc()
3358 if (dtd->attributes == NULL) return(NULL); in xmlGetDtdQAttrDesc()
3359 table = (xmlAttributeTablePtr) dtd->attributes; in xmlGetDtdQAttrDesc()
3375 xmlGetDtdNotationDesc(xmlDtdPtr dtd, const xmlChar *name) { in xmlGetDtdNotationDesc() argument
3378 if (dtd == NULL) return(NULL); in xmlGetDtdNotationDesc()
3379 if (dtd->notations == NULL) return(NULL); in xmlGetDtdNotationDesc()
3380 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()
6795 xmlDtdPtr dtd; in xmlValidateDtdFinal() local
6804 dtd = doc->intSubset; in xmlValidateDtdFinal()
6805 if ((dtd != NULL) && (dtd->attributes != NULL)) { in xmlValidateDtdFinal()
6806 table = (xmlAttributeTablePtr) dtd->attributes; in xmlValidateDtdFinal()
6809 if ((dtd != NULL) && (dtd->entities != NULL)) { in xmlValidateDtdFinal()
6810 entities = (xmlEntitiesTablePtr) dtd->entities; in xmlValidateDtdFinal()
6814 dtd = doc->extSubset; in xmlValidateDtdFinal()
6815 if ((dtd != NULL) && (dtd->attributes != NULL)) { in xmlValidateDtdFinal()
6816 table = (xmlAttributeTablePtr) dtd->attributes; in xmlValidateDtdFinal()
6819 if ((dtd != NULL) && (dtd->entities != NULL)) { in xmlValidateDtdFinal()
6820 entities = (xmlEntitiesTablePtr) dtd->entities; in xmlValidateDtdFinal()