• Home
  • Raw
  • Download

Lines Matching refs:dtd

29 static xmlElementPtr xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name,
1382 xmlDtdPtr dtd, const xmlChar *name, in xmlAddElementDecl() argument
1390 if (dtd == NULL) { in xmlAddElementDecl()
1447 table = (xmlElementTablePtr) dtd->elements; in xmlAddElementDecl()
1451 if (dtd->doc != NULL) in xmlAddElementDecl()
1452 dict = dtd->doc->dict; in xmlAddElementDecl()
1454 dtd->elements = (void *) table; in xmlAddElementDecl()
1470 if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) { in xmlAddElementDecl()
1471 ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns); in xmlAddElementDecl()
1475 xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL); in xmlAddElementDecl()
1491 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, in xmlAddElementDecl()
1542 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, in xmlAddElementDecl()
1574 ret->content = xmlCopyDocElementContent(dtd->doc, content); in xmlAddElementDecl()
1580 ret->parent = dtd; in xmlAddElementDecl()
1581 ret->doc = dtd->doc; in xmlAddElementDecl()
1582 if (dtd->last == NULL) { in xmlAddElementDecl()
1583 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddElementDecl()
1585 dtd->last->next = (xmlNodePtr) ret; in xmlAddElementDecl()
1586 ret->prev = dtd->last; in xmlAddElementDecl()
1587 dtd->last = (xmlNodePtr) ret; in xmlAddElementDecl()
1926 xmlDtdPtr dtd, const xmlChar *elem, in xmlAddAttributeDecl() argument
1935 if (dtd == NULL) { in xmlAddAttributeDecl()
1947 if (dtd->doc != NULL) in xmlAddAttributeDecl()
1948 dict = dtd->doc->dict; in xmlAddAttributeDecl()
1983 (!xmlValidateAttributeValueInternal(dtd->doc, type, defaultValue))) { in xmlAddAttributeDecl()
1984 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_DEFAULT, in xmlAddAttributeDecl()
1997 if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) && in xmlAddAttributeDecl()
1998 (dtd->doc->intSubset != NULL) && in xmlAddAttributeDecl()
1999 (dtd->doc->intSubset->attributes != NULL)) { in xmlAddAttributeDecl()
2000 ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem); in xmlAddAttributeDecl()
2010 table = (xmlAttributeTablePtr) dtd->attributes; in xmlAddAttributeDecl()
2013 dtd->attributes = (void *) table; in xmlAddAttributeDecl()
2041 ret->doc = dtd->doc; in xmlAddAttributeDecl()
2069 xmlErrValidWarning(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_REDEFINED, in xmlAddAttributeDecl()
2081 elemDef = xmlGetDtdElementDesc2(dtd, elem, 1); in xmlAddAttributeDecl()
2087 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_MULTIPLE_ID, in xmlAddAttributeDecl()
2128 ret->parent = dtd; in xmlAddAttributeDecl()
2129 if (dtd->last == NULL) { in xmlAddAttributeDecl()
2130 dtd->children = dtd->last = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2132 dtd->last->next = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2133 ret->prev = dtd->last; in xmlAddAttributeDecl()
2134 dtd->last = (xmlNodePtr) ret; in xmlAddAttributeDecl()
2346 xmlAddNotationDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, in xmlAddNotationDecl() argument
2352 if (dtd == NULL) { in xmlAddNotationDecl()
2365 table = (xmlNotationTablePtr) dtd->notations; in xmlAddNotationDecl()
2368 if (dtd->doc != NULL) in xmlAddNotationDecl()
2369 dict = dtd->doc->dict; in xmlAddNotationDecl()
2371 dtd->notations = table = xmlHashCreateDict(0, dict); in xmlAddNotationDecl()
3146 xmlGetDtdElementDesc(xmlDtdPtr dtd, const xmlChar *name) { in xmlGetDtdElementDesc() argument
3151 if ((dtd == NULL) || (name == NULL)) return(NULL); in xmlGetDtdElementDesc()
3152 if (dtd->elements == NULL) in xmlGetDtdElementDesc()
3154 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc()
3176 xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name, int create) { in xmlGetDtdElementDesc2() argument
3181 if (dtd == NULL) return(NULL); in xmlGetDtdElementDesc2()
3182 if (dtd->elements == NULL) { in xmlGetDtdElementDesc2()
3185 if (dtd->doc != NULL) in xmlGetDtdElementDesc2()
3186 dict = dtd->doc->dict; in xmlGetDtdElementDesc2()
3193 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc2()
3196 dtd->elements = (void *) table; in xmlGetDtdElementDesc2()
3203 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdElementDesc2()
3244 xmlGetDtdQElementDesc(xmlDtdPtr dtd, const xmlChar *name, in xmlGetDtdQElementDesc() argument
3248 if (dtd == NULL) return(NULL); in xmlGetDtdQElementDesc()
3249 if (dtd->elements == NULL) return(NULL); in xmlGetDtdQElementDesc()
3250 table = (xmlElementTablePtr) dtd->elements; in xmlGetDtdQElementDesc()
3268 xmlGetDtdAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name) { in xmlGetDtdAttrDesc() argument
3273 if (dtd == NULL) return(NULL); in xmlGetDtdAttrDesc()
3274 if (dtd->attributes == NULL) return(NULL); in xmlGetDtdAttrDesc()
3276 table = (xmlAttributeTablePtr) dtd->attributes; in xmlGetDtdAttrDesc()
3305 xmlGetDtdQAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name, in xmlGetDtdQAttrDesc() argument
3309 if (dtd == NULL) return(NULL); in xmlGetDtdQAttrDesc()
3310 if (dtd->attributes == NULL) return(NULL); in xmlGetDtdQAttrDesc()
3311 table = (xmlAttributeTablePtr) dtd->attributes; in xmlGetDtdQAttrDesc()
3327 xmlGetDtdNotationDesc(xmlDtdPtr dtd, const xmlChar *name) { in xmlGetDtdNotationDesc() argument
3330 if (dtd == NULL) return(NULL); in xmlGetDtdNotationDesc()
3331 if (dtd->notations == NULL) return(NULL); in xmlGetDtdNotationDesc()
3332 table = (xmlNotationTablePtr) dtd->notations; in xmlGetDtdNotationDesc()
6611 xmlValidateDtd(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlDtdPtr dtd) { in xmlValidateDtd() argument
6616 if (dtd == NULL) return(0); in xmlValidateDtd()
6620 doc->extSubset = dtd; in xmlValidateDtd()
6752 xmlDtdPtr dtd; in xmlValidateDtdFinal() local
6761 dtd = doc->intSubset; in xmlValidateDtdFinal()
6762 if ((dtd != NULL) && (dtd->attributes != NULL)) { in xmlValidateDtdFinal()
6763 table = (xmlAttributeTablePtr) dtd->attributes; in xmlValidateDtdFinal()
6766 if ((dtd != NULL) && (dtd->entities != NULL)) { in xmlValidateDtdFinal()
6767 entities = (xmlEntitiesTablePtr) dtd->entities; in xmlValidateDtdFinal()
6771 dtd = doc->extSubset; in xmlValidateDtdFinal()
6772 if ((dtd != NULL) && (dtd->attributes != NULL)) { in xmlValidateDtdFinal()
6773 table = (xmlAttributeTablePtr) dtd->attributes; in xmlValidateDtdFinal()
6776 if ((dtd != NULL) && (dtd->entities != NULL)) { in xmlValidateDtdFinal()
6777 entities = (xmlEntitiesTablePtr) dtd->entities; in xmlValidateDtdFinal()