Lines Matching full:atts
1662 const xmlChar **atts;
1666 if (ctxt->atts == NULL) {
1668 atts = (const xmlChar **)
1670 if (atts == NULL) goto mem_error;
1671 ctxt->atts = atts;
1678 atts = (const xmlChar **) xmlRealloc((void *) ctxt->atts,
1680 if (atts == NULL) goto mem_error;
1681 ctxt->atts = atts;
8647 const xmlChar **atts = ctxt->atts;
8684 if (xmlStrEqual(atts[i], attname)) {
8691 * Add the pair to atts
8693 if (atts == NULL) {
8695 atts = (const xmlChar **)
8697 if (atts == NULL) {
8703 ctxt->atts = atts;
8709 n = (const xmlChar **) xmlRealloc((void *) atts,
8717 atts = n;
8718 ctxt->atts = atts;
8721 atts[nbatts++] = attname;
8722 atts[nbatts++] = attvalue;
8723 atts[nbatts] = NULL;
8724 atts[nbatts + 1] = NULL;
8756 ctxt->sax->startElement(ctxt->userData, name, atts);
8761 if (atts != NULL) {
8764 if (atts[i] != NULL)
8765 xmlFree((xmlChar *) atts[i]);
9392 const xmlChar **atts = ctxt->atts;
9615 * Add the pair to atts
9617 if ((atts == NULL) || (nbatts + 5 > maxatts)) {
9624 atts = ctxt->atts;
9627 atts[nbatts++] = attname;
9628 atts[nbatts++] = aprefix;
9629 atts[nbatts++] = NULL; /* the URI will be fetched later */
9630 atts[nbatts++] = attvalue;
9632 atts[nbatts++] = attvalue;
9718 if ((attname == atts[j]) && (aprefix == atts[j+1]))
9723 if ((atts == NULL) || (nbatts + 5 > maxatts)) {
9728 atts = ctxt->atts;
9730 atts[nbatts++] = attname;
9731 atts[nbatts++] = aprefix;
9733 atts[nbatts++] = NULL;
9735 atts[nbatts++] = xmlGetNamespace(ctxt, aprefix);
9736 atts[nbatts++] = defaults->values[5 * i + 2];
9737 atts[nbatts++] = defaults->values[5 * i + 3];
9757 if (atts[i + 1] != NULL) {
9758 nsname = xmlGetNamespace(ctxt, atts[i + 1]);
9762 atts[i + 1], atts[i], localname);
9764 atts[i + 2] = nsname;
9774 if (atts[i] == atts[j]) {
9775 if (atts[i+1] == atts[j+1]) {
9776 xmlErrAttributeDup(ctxt, atts[i+1], atts[i]);
9779 if ((nsname != NULL) && (atts[j + 2] == nsname)) {
9782 atts[i], nsname, NULL);
9806 nbatts / 5, nbdef, atts);
9809 nsname, 0, NULL, nbatts / 5, nbdef, atts);
9817 if ((ctxt->attallocs[j] != 0) && (atts[i] != NULL))
9818 xmlFree((xmlChar *) atts[i]);
9829 if ((ctxt->attallocs[j] != 0) && (atts[i] != NULL))
9830 xmlFree((xmlChar *) atts[i]);