Lines Matching defs:dtd

29 static xmlElementPtr xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name,
530 xmlGenericError(xmlGenericErrorContext, "?dtd? ");
635 xmlAttributePtr xmlScanAttributeDecl(xmlDtdPtr dtd, const xmlChar *elem);
1368 * @dtd: pointer to the DTD
1379 xmlDtdPtr dtd, const xmlChar *name,
1387 if (dtd == NULL) {
1444 table = (xmlElementTablePtr) dtd->elements;
1448 if (dtd->doc != NULL)
1449 dict = dtd->doc->dict;
1451 dtd->elements = (void *) table;
1467 if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) {
1468 ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns);
1472 xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL);
1488 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED,
1539 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED,
1571 ret->content = xmlCopyDocElementContent(dtd->doc, content);
1577 ret->parent = dtd;
1578 ret->doc = dtd->doc;
1579 if (dtd->last == NULL) {
1580 dtd->children = dtd->last = (xmlNodePtr) ret;
1582 dtd->last->next = (xmlNodePtr) ret;
1583 ret->prev = dtd->last;
1584 dtd->last = (xmlNodePtr) ret;
1847 * @dtd: pointer to the DTD
1857 xmlScanAttributeDecl(xmlDtdPtr dtd, const xmlChar *elem) {
1861 if (dtd == NULL) {
1867 table = (xmlAttributeTablePtr) dtd->attributes;
1954 * @dtd: pointer to the DTD
1970 xmlDtdPtr dtd, const xmlChar *elem,
1979 if (dtd == NULL) {
1991 if (dtd->doc != NULL)
1992 dict = dtd->doc->dict;
2028 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_DEFAULT,
2041 if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) &&
2042 (dtd->doc->intSubset != NULL) &&
2043 (dtd->doc->intSubset->attributes != NULL)) {
2044 ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem);
2052 table = (xmlAttributeTablePtr) dtd->attributes;
2055 dtd->attributes = (void *) table;
2081 ret->doc = dtd->doc;
2109 xmlErrValidWarning(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_REDEFINED,
2121 elemDef = xmlGetDtdElementDesc2(dtd, elem, 1);
2127 xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_MULTIPLE_ID,
2168 ret->parent = dtd;
2169 if (dtd->last == NULL) {
2170 dtd->children = dtd->last = (xmlNodePtr) ret;
2172 dtd->last->next = (xmlNodePtr) ret;
2173 ret->prev = dtd->last;
2174 dtd->last = (xmlNodePtr) ret;
2375 * @dtd: pointer to the DTD
2386 xmlAddNotationDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd,
2392 if (dtd == NULL) {
2405 table = (xmlNotationTablePtr) dtd->notations;
2408 if (dtd->doc != NULL)
2409 dict = dtd->doc->dict;
2411 dtd->notations = table = xmlHashCreateDict(0, dict);
3176 * @dtd: a pointer to the DtD to search
3185 xmlGetDtdElementDesc(xmlDtdPtr dtd, const xmlChar *name) {
3190 if ((dtd == NULL) || (name == NULL)) return(NULL);
3191 if (dtd->elements == NULL)
3193 table = (xmlElementTablePtr) dtd->elements;
3205 * @dtd: a pointer to the DtD to search
3215 xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name, int create) {
3220 if (dtd == NULL) return(NULL);
3221 if (dtd->elements == NULL) {
3224 if (dtd->doc != NULL)
3225 dict = dtd->doc->dict;
3232 table = (xmlElementTablePtr) dtd->elements;
3235 dtd->elements = (void *) table;
3242 table = (xmlElementTablePtr) dtd->elements;
3273 * @dtd: a pointer to the DtD to search
3283 xmlGetDtdQElementDesc(xmlDtdPtr dtd, const xmlChar *name,
3287 if (dtd == NULL) return(NULL);
3288 if (dtd->elements == NULL) return(NULL);
3289 table = (xmlElementTablePtr) dtd->elements;
3296 * @dtd: a pointer to the DtD to search
3307 xmlGetDtdAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name) {
3312 if (dtd == NULL) return(NULL);
3313 if (dtd->attributes == NULL) return(NULL);
3315 table = (xmlAttributeTablePtr) dtd->attributes;
3332 * @dtd: a pointer to the DtD to search
3344 xmlGetDtdQAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name,
3348 if (dtd == NULL) return(NULL);
3349 if (dtd->attributes == NULL) return(NULL);
3350 table = (xmlAttributeTablePtr) dtd->attributes;
3357 * @dtd: a pointer to the DtD to search
3366 xmlGetDtdNotationDesc(xmlDtdPtr dtd, const xmlChar *name) {
3369 if (dtd == NULL) return(NULL);
3370 if (dtd->notations == NULL) return(NULL);
3371 table = (xmlNotationTablePtr) dtd->notations;
6518 * @dtd: a dtd instance
6520 * Try to validate the document against the dtd instance
6531 xmlValidateDtd(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlDtdPtr dtd) {
6536 if (dtd == NULL) return(0);
6540 doc->extSubset = dtd;
6672 xmlDtdPtr dtd;
6681 dtd = doc->intSubset;
6682 if ((dtd != NULL) && (dtd->attributes != NULL)) {
6683 table = (xmlAttributeTablePtr) dtd->attributes;
6686 if ((dtd != NULL) && (dtd->entities != NULL)) {
6687 entities = (xmlEntitiesTablePtr) dtd->entities;
6691 dtd = doc->extSubset;
6692 if ((dtd != NULL) && (dtd->attributes != NULL)) {
6693 table = (xmlAttributeTablePtr) dtd->attributes;
6696 if ((dtd != NULL) && (dtd->entities != NULL)) {
6697 entities = (xmlEntitiesTablePtr) dtd->entities;