Lines Matching defs:dtd

29 static xmlElementPtr xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name,
535 xmlGenericError(xmlGenericErrorContext, "?dtd? ");
1371 * @dtd: pointer to the DTD
1382 xmlDtdPtr dtd, const xmlChar *name,
1390 if (dtd == NULL) {
1447 table = (xmlElementTablePtr) dtd->elements;
1451 if (dtd->doc != NULL)
1452 dict = dtd->doc->dict;
1454 dtd->elements = (void *) table;
1470 if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) {
1471 ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns);
1475 xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL);
1491 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED,
1542 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED,
1574 ret->content = xmlCopyDocElementContent(dtd->doc, content);
1580 ret->parent = dtd;
1581 ret->doc = dtd->doc;
1582 if (dtd->last == NULL) {
1583 dtd->children = dtd->last = (xmlNodePtr) ret;
1585 dtd->last->next = (xmlNodePtr) ret;
1586 ret->prev = dtd->last;
1587 dtd->last = (xmlNodePtr) ret;
1910 * @dtd: pointer to the DTD
1926 xmlDtdPtr dtd, const xmlChar *elem,
1935 if (dtd == NULL) {
1947 if (dtd->doc != NULL)
1948 dict = dtd->doc->dict;
1983 (!xmlValidateAttributeValueInternal(dtd->doc, type, defaultValue))) {
1984 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_DEFAULT,
1997 if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) &&
1998 (dtd->doc->intSubset != NULL) &&
1999 (dtd->doc->intSubset->attributes != NULL)) {
2000 ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem);
2010 table = (xmlAttributeTablePtr) dtd->attributes;
2013 dtd->attributes = (void *) table;
2041 ret->doc = dtd->doc;
2069 xmlErrValidWarning(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_REDEFINED,
2081 elemDef = xmlGetDtdElementDesc2(dtd, elem, 1);
2087 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_MULTIPLE_ID,
2128 ret->parent = dtd;
2129 if (dtd->last == NULL) {
2130 dtd->children = dtd->last = (xmlNodePtr) ret;
2132 dtd->last->next = (xmlNodePtr) ret;
2133 ret->prev = dtd->last;
2134 dtd->last = (xmlNodePtr) ret;
2335 * @dtd: pointer to the DTD
2346 xmlAddNotationDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd,
2352 if (dtd == NULL) {
2365 table = (xmlNotationTablePtr) dtd->notations;
2368 if (dtd->doc != NULL)
2369 dict = dtd->doc->dict;
2371 dtd->notations = table = xmlHashCreateDict(0, dict);
3137 * @dtd: a pointer to the DtD to search
3146 xmlGetDtdElementDesc(xmlDtdPtr dtd, const xmlChar *name) {
3151 if ((dtd == NULL) || (name == NULL)) return(NULL);
3152 if (dtd->elements == NULL)
3154 table = (xmlElementTablePtr) dtd->elements;
3166 * @dtd: a pointer to the DtD to search
3176 xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name, int create) {
3181 if (dtd == NULL) return(NULL);
3182 if (dtd->elements == NULL) {
3185 if (dtd->doc != NULL)
3186 dict = dtd->doc->dict;
3193 table = (xmlElementTablePtr) dtd->elements;
3196 dtd->elements = (void *) table;
3203 table = (xmlElementTablePtr) dtd->elements;
3234 * @dtd: a pointer to the DtD to search
3244 xmlGetDtdQElementDesc(xmlDtdPtr dtd, const xmlChar *name,
3248 if (dtd == NULL) return(NULL);
3249 if (dtd->elements == NULL) return(NULL);
3250 table = (xmlElementTablePtr) dtd->elements;
3257 * @dtd: a pointer to the DtD to search
3268 xmlGetDtdAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name) {
3273 if (dtd == NULL) return(NULL);
3274 if (dtd->attributes == NULL) return(NULL);
3276 table = (xmlAttributeTablePtr) dtd->attributes;
3293 * @dtd: a pointer to the DtD to search
3305 xmlGetDtdQAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name,
3309 if (dtd == NULL) return(NULL);
3310 if (dtd->attributes == NULL) return(NULL);
3311 table = (xmlAttributeTablePtr) dtd->attributes;
3318 * @dtd: a pointer to the DtD to search
3327 xmlGetDtdNotationDesc(xmlDtdPtr dtd, const xmlChar *name) {
3330 if (dtd == NULL) return(NULL);
3331 if (dtd->notations == NULL) return(NULL);
3332 table = (xmlNotationTablePtr) dtd->notations;
6600 * @dtd: a dtd instance
6602 * Try to validate the document against the dtd instance
6613 xmlValidateDtd(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlDtdPtr dtd) {
6618 if (dtd == NULL) return(0);
6622 doc->extSubset = dtd;
6754 xmlDtdPtr dtd;
6763 dtd = doc->intSubset;
6764 if ((dtd != NULL) && (dtd->attributes != NULL)) {
6765 table = (xmlAttributeTablePtr) dtd->attributes;
6768 if ((dtd != NULL) && (dtd->entities != NULL)) {
6769 entities = (xmlEntitiesTablePtr) dtd->entities;
6773 dtd = doc->extSubset;
6774 if ((dtd != NULL) && (dtd->attributes != NULL)) {
6775 table = (xmlAttributeTablePtr) dtd->attributes;
6778 if ((dtd != NULL) && (dtd->entities != NULL)) {
6779 entities = (xmlEntitiesTablePtr) dtd->entities;