Lines Matching refs:NULL

60     if (ctxt != NULL) {
61 if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
83 xmlStructuredErrorFunc schannel = NULL;
85 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
88 if (ctxt != NULL) {
90 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
94 ctxt, NULL, XML_FROM_DTD, error,
95 XML_ERR_ERROR, NULL, 0, (const char *) str1,
96 (const char *) str2, NULL, 0, 0,
101 NULL, NULL,
102 ctxt, NULL, XML_FROM_DTD, error,
103 XML_ERR_ERROR, NULL, 0, (const char *) str1,
104 (const char *) str2, NULL, 0, 0,
123 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
126 if (ctxt != NULL)
128 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error,
129 XML_ERR_FATAL, NULL, 0,
131 NULL, 0, 0, msg, str1, str2);
132 if (ctxt != NULL) {
154 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
157 if (ctxt != NULL)
159 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error,
160 XML_ERR_WARNING, NULL, 0,
161 (const char *) str1, NULL,
162 NULL, 0, 0, msg, str1);
179 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
182 if (ctxt != NULL)
184 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error,
185 XML_ERR_ERROR, NULL, 0,
187 NULL, 0, 0, msg, str1, str2);
203 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
206 if (ctxt != NULL)
208 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error,
209 XML_ERR_WARNING, NULL, 0,
211 NULL, 0, 0, msg, str1, str2);
226 return(NULL);
242 if ((ctx == NULL) || (ctxt->input == NULL)) return(NULL);
258 if ((ctx == NULL) || (ctxt->input == NULL)) return(0);
274 if ((ctx == NULL) || (ctxt->input == NULL)) return(0);
290 if ((ctx == NULL) || (ctxt->myDoc == NULL)) return(0);
306 if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
307 return(ctxt->myDoc->intSubset != NULL);
322 if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
323 return(ctxt->myDoc->extSubset != NULL);
341 if (ctx == NULL) return;
348 if (ctxt->myDoc == NULL)
351 if (dtd != NULL) {
356 ctxt->myDoc->intSubset = NULL;
360 if (ctxt->myDoc->intSubset == NULL)
378 if (ctx == NULL) return;
384 if (((ExternalID != NULL) || (SystemID != NULL)) &&
394 xmlParserInputPtr input = NULL;
401 if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL))
404 if (input == NULL) {
421 if (ctxt->inputTab == NULL) {
432 ctxt->input = NULL;
443 if (input->filename == NULL)
449 input->free = NULL;
489 * Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
497 const char *base = NULL;
499 if (ctx == NULL) return(NULL);
500 if (ctxt->input != NULL)
502 if (base == NULL)
514 if (URI != NULL)
532 xmlEntityPtr ret = NULL;
534 if (ctx == NULL) return(NULL);
542 if (ret != NULL)
545 if ((ctxt->myDoc != NULL) && (ctxt->myDoc->standalone == 1)) {
552 if (ret == NULL) {
555 if (ret != NULL) {
558 name, NULL);
566 if ((ret != NULL) &&
568 (ret->children == NULL) &&
584 "Failure to process entity %s\n", name, NULL);
586 return(NULL);
610 if (ctx == NULL) return(NULL);
639 if (ctx == NULL) return;
648 if ((ent == NULL) && (ctxt->pedantic))
652 if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
654 const char *base = NULL;
656 if (ctxt->input != NULL)
658 if (base == NULL)
667 if ((ent == NULL) && (ctxt->pedantic) &&
668 (ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
671 if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
673 const char *base = NULL;
675 if (ctxt->input != NULL)
677 if (base == NULL)
686 name, NULL);
709 xmlChar *name = NULL, *prefix = NULL;
711 if ((ctxt == NULL) || (ctxt->myDoc == NULL))
726 "xml:id : attribute type should be ID\n", NULL, NULL);
743 name, NULL);
750 if ((attr != NULL) && (ctxt->validate) && (ctxt->wellFormed) &&
751 (ctxt->myDoc->intSubset != NULL))
755 if (prefix != NULL)
757 if (name != NULL)
775 xmlElementPtr elem = NULL;
777 if ((ctxt == NULL) || (ctxt->myDoc == NULL))
794 name, NULL);
798 if (elem == NULL)
821 xmlNotationPtr nota = NULL;
823 if ((ctxt == NULL) || (ctxt->myDoc == NULL))
831 if ((publicId == NULL) && (systemId == NULL)) {
834 name, NULL);
845 name, NULL);
849 if (nota == NULL) ctxt->valid = 0;
851 (ctxt->myDoc->intSubset != NULL))
874 if (ctx == NULL) return;
884 if ((ent == NULL) && (ctxt->pedantic) &&
885 (ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
888 if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
890 const char *base = NULL;
892 if (ctxt->input != NULL)
894 if (base == NULL)
904 if ((ent == NULL) && (ctxt->pedantic) &&
905 (ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
908 if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
910 const char *base = NULL;
912 if (ctxt->input != NULL)
914 if (base == NULL)
923 name, NULL);
957 if (ctx == NULL) return;
965 if (ctxt->myDoc == NULL)
966 ctxt->myDoc = htmlNewDocNoDtD(NULL, NULL);
969 if (ctxt->myDoc == NULL) {
983 if (doc != NULL) {
988 if (ctxt->encoding != NULL)
991 doc->encoding = NULL;
997 if ((ctxt->dictNames) && (doc != NULL)) {
1002 if ((ctxt->myDoc != NULL) && (ctxt->myDoc->URL == NULL) &&
1003 (ctxt->input != NULL) && (ctxt->input->filename != NULL)) {
1005 if (ctxt->myDoc->URL == NULL)
1024 if (ctx == NULL) return;
1034 if ((ctxt->encoding != NULL) && (ctxt->myDoc != NULL) &&
1035 (ctxt->myDoc->encoding == NULL)) {
1037 ctxt->encoding = NULL;
1039 if ((ctxt->inputTab != NULL) &&
1040 (ctxt->inputNr > 0) && (ctxt->inputTab[0] != NULL) &&
1041 (ctxt->inputTab[0]->encoding != NULL) && (ctxt->myDoc != NULL) &&
1042 (ctxt->myDoc->encoding == NULL)) {
1045 if ((ctxt->charset != XML_CHAR_ENCODING_NONE) && (ctxt->myDoc != NULL) &&
1077 ns = NULL;
1078 namespace = NULL;
1084 if ((name != NULL) && (name[0] == 0)) {
1088 fullname, NULL);
1092 fullname, NULL);
1094 if (ns != NULL)
1096 ns = NULL;
1101 if (name == NULL) {
1103 if (ns != NULL)
1110 (value == NULL) && (htmlIsBooleanAttr(fullname))) {
1129 if (nval != NULL)
1132 nval = NULL;
1139 if ((!ctxt->html) && (ns == NULL) &&
1158 if (uri == NULL) {
1159 if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
1163 if (uri->scheme == NULL) {
1164 if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
1173 nsret = xmlNewNs(ctxt->node, val, NULL);
1180 if (nsret != NULL && ctxt->validate && ctxt->wellFormed &&
1185 if (name != NULL)
1187 if (nval != NULL)
1194 (ns != NULL) && (ns[0] == 'x') && (ns[1] == 'm') && (ns[2] == 'l') &&
1204 if (val == NULL) {
1207 if (name != NULL)
1217 "Empty namespace name for prefix %s\n", name, NULL);
1223 if (uri == NULL) {
1227 if (uri->scheme == NULL) {
1243 if (nsret != NULL && ctxt->validate && ctxt->wellFormed &&
1248 if (name != NULL)
1250 if (nval != NULL)
1257 if (ns != NULL) {
1260 if (namespace == NULL) {
1268 while (prop != NULL) {
1269 if (prop->ns != NULL) {
1285 namespace = NULL;
1289 ret = xmlNewNsPropEatName(ctxt->node, namespace, name, NULL);
1291 if (ret != NULL) {
1297 while (tmp != NULL) {
1299 if (tmp->next == NULL)
1303 } else if (value != NULL) {
1306 if (ret->children != NULL)
1327 if (val == NULL)
1340 if (nvalnorm != NULL) {
1371 (const char *) value, NULL);
1381 if (nval != NULL)
1383 if (ns != NULL)
1401 if (elemDecl == NULL) {
1408 if (elemDecl != NULL) {
1415 (ctxt->myDoc->extSubset != NULL) &&
1417 while (attr != NULL) {
1418 if ((attr->defaultValue != NULL) &&
1424 attr->prefix) == NULL)) {
1427 if (attr->prefix != NULL) {
1434 if (fulln == NULL) {
1443 att = NULL;
1444 if (atts != NULL) {
1447 while (att != NULL) {
1454 if (att == NULL) {
1470 while (attr != NULL) {
1476 if (attr->defaultValue != NULL) {
1485 if (((attr->prefix != NULL) &&
1487 ((attr->prefix == NULL) &&
1495 if ((tst == attr) || (tst == NULL)) {
1500 if (fulln == NULL) {
1509 att = NULL;
1510 if (atts != NULL) {
1513 while (att != NULL) {
1520 if (att == NULL) {
1544 * @atts: An array of name/value attributes pairs, NULL terminated
1561 if ((ctx == NULL) || (fullname == NULL) || (ctxt->myDoc == NULL)) return;
1571 if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) &&
1572 ((ctxt->myDoc->intSubset == NULL) ||
1573 ((ctxt->myDoc->intSubset->notations == NULL) &&
1574 (ctxt->myDoc->intSubset->elements == NULL) &&
1575 (ctxt->myDoc->intSubset->attributes == NULL) &&
1576 (ctxt->myDoc->intSubset->entities == NULL)))) {
1578 "Validation failed: no DTD found !", NULL, NULL);
1594 ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL, name, NULL);
1595 if (ret == NULL) {
1596 if (prefix != NULL)
1601 if (ctxt->myDoc->children == NULL) {
1606 } else if (parent == NULL) {
1611 if (ctxt->input != NULL) {
1630 if (parent != NULL) {
1651 ((ctxt->myDoc->intSubset != NULL) ||
1652 (ctxt->myDoc->extSubset != NULL))) {
1659 if (atts != NULL) {
1664 while ((att != NULL) && (value != NULL)) {
1680 if ((ns == NULL) && (parent != NULL))
1682 if ((prefix != NULL) && (ns == NULL)) {
1683 ns = xmlNewNs(ret, NULL, prefix);
1686 prefix, NULL);
1691 * is unbound on a parent we simply kee it NULL
1693 if ((ns != NULL) && (ns->href != NULL) &&
1694 ((ns->href[0] != 0) || (ns->prefix != NULL)))
1700 if (atts != NULL) {
1705 while (att != NULL) {
1706 xmlSAX2AttributeInternal(ctxt, att, value, NULL);
1711 while ((att != NULL) && (value != NULL)) {
1714 xmlSAX2AttributeInternal(ctxt, att, value, NULL);
1743 if (prefix != NULL)
1762 if (ctx == NULL) return;
1765 if (name == NULL)
1766 xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2EndElement(NULL)\n");
1772 if (cur != NULL && ctxt->record_info) {
1806 * Returns the newly allocated string or NULL if not needed or error
1811 const xmlChar *intern = NULL;
1816 if (ctxt->freeElems != NULL) {
1823 if (ret == NULL) {
1825 return(NULL);
1859 if (intern == NULL) {
1861 if (ret->content == NULL) {
1864 return(NULL);
1869 if (ctxt->input != NULL)
1886 * Returns the newly allocated string or NULL if not needed or error
1898 return(NULL);
1930 xmlNsPtr namespace = NULL;
1931 xmlChar *dup = NULL;
1934 * Note: if prefix == NULL, the attribute is not in the default namespace
1936 if (prefix != NULL)
1942 if (ctxt->freeAttrs != NULL) {
1959 if (ctxt->node->properties == NULL) {
1964 while (prev->next != NULL) prev = prev->next;
1974 (xmlChar *) localname, NULL);
1976 ret = xmlNewNsProp(ctxt->node, namespace, localname, NULL);
1977 if (ret == NULL) {
1995 if (tmp != NULL) {
2003 while (tmp != NULL) {
2006 if (tmp->next == NULL)
2011 } else if (value != NULL) {
2017 if (tmp != NULL) {
2032 if (dup == NULL) {
2055 if (ctxt->attsSpecial != NULL) {
2061 if (fullname != NULL) {
2071 if (nvalnorm != NULL) {
2108 if (dup == NULL)
2114 (const char *) dup, NULL);
2120 if (dup == NULL)
2124 if (dup == NULL)
2129 if (dup != NULL)
2164 xmlNsPtr last = NULL, ns;
2166 xmlChar *lname = NULL;
2169 if (ctx == NULL) return;
2174 if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) &&
2175 ((ctxt->myDoc->intSubset == NULL) ||
2176 ((ctxt->myDoc->intSubset->notations == NULL) &&
2177 (ctxt->myDoc->intSubset->elements == NULL) &&
2178 (ctxt->myDoc->intSubset->attributes == NULL) &&
2179 (ctxt->myDoc->intSubset->entities == NULL)))) {
2181 "Validation failed: no DTD found !", NULL, NULL);
2188 if ((prefix != NULL) && (URI == NULL)) {
2193 if (fullname != NULL)
2196 lname = xmlBuildQName(localname, prefix, NULL, 0);
2202 if (ctxt->freeElems != NULL) {
2212 if (lname == NULL)
2216 if (ret->name == NULL) {
2225 ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL,
2226 (xmlChar *) localname, NULL);
2227 else if (lname == NULL)
2228 ret = xmlNewDocNode(ctxt->myDoc, NULL, localname, NULL);
2230 ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL,
2231 (xmlChar *) lname, NULL);
2232 if (ret == NULL) {
2238 if (ctxt->input != NULL) {
2246 if ((ctxt->myDoc->children == NULL) || (parent == NULL)) {
2255 ns = xmlNewNs(NULL, uri, pref);
2256 if (ns != NULL) {
2257 if (last == NULL) {
2263 if ((URI != NULL) && (prefix == pref))
2291 if (parent != NULL) {
2308 * Note that, if prefix is NULL, this searches for the default Ns
2310 if ((URI != NULL) && (ret->ns == NULL)) {
2312 if ((ret->ns == NULL) && (xmlStrEqual(prefix, BAD_CAST "xml"))) {
2315 if (ret->ns == NULL) {
2316 ns = xmlNewNs(ret, NULL, prefix);
2317 if (ns == NULL) {
2322 if (prefix != NULL)
2325 prefix, NULL);
2329 NULL, NULL);
2341 if ((attributes[j+1] != NULL) && (attributes[j+2] == NULL)) {
2347 if (fullname != NULL) {
2348 xmlSAX2AttributeNs(ctxt, fullname, NULL,
2354 NULL, 0);
2355 if (lname != NULL) {
2356 xmlSAX2AttributeNs(ctxt, lname, NULL,
2407 if (ctx == NULL) return;
2410 if ((ctxt->record_info) && (cur != NULL)) {
2443 if (ctx == NULL) return;
2456 if (xmlAddChild(ctxt->node, ret) == NULL) {
2475 if (ctx == NULL) return;
2486 if (ctxt->node == NULL) {
2489 "add chars: ctxt->node == NULL !\n");
2503 if (lastChild == NULL) {
2505 if (lastChild != NULL) {
2517 int coalesceText = (lastChild != NULL) &&
2530 lastChild->properties = NULL;
2552 if (newbuf == NULL) {
2566 if (ctxt->node->children != NULL) {
2573 if (lastChild != NULL) {
2575 if (ctxt->node->children != NULL) {
2619 if (ctx == NULL) return;
2627 if (ret == NULL) return;
2630 if (ctxt->input != NULL) {
2644 if ((ctxt->myDoc->children == NULL) || (parent == NULL)) {
2682 if (ctx == NULL) return;
2688 if (ret == NULL) return;
2690 if (ctxt->input != NULL) {
2705 if ((ctxt->myDoc->children == NULL) || (parent == NULL)) {
2743 if (ctx == NULL) return;
2753 if ((lastChild != NULL) &&
2801 if (hdlr == NULL) return(-1);
2803 hdlr->startElement = NULL;
2804 hdlr->endElement = NULL;
2807 hdlr->serror = NULL;
2856 if ((hdlr == NULL) || (hdlr->initialized != 0))
2861 hdlr->warning = NULL;
2890 if ((hdlr == NULL) || (hdlr->initialized != 0))
2894 hdlr->externalSubset = NULL;
2895 hdlr->isStandalone = NULL;
2896 hdlr->hasInternalSubset = NULL;
2897 hdlr->hasExternalSubset = NULL;
2898 hdlr->resolveEntity = NULL;
2900 hdlr->getParameterEntity = NULL;
2901 hdlr->entityDecl = NULL;
2902 hdlr->attributeDecl = NULL;
2903 hdlr->elementDecl = NULL;
2904 hdlr->notationDecl = NULL;
2905 hdlr->unparsedEntityDecl = NULL;
2911 hdlr->reference = NULL;
2948 if ((hdlr == NULL) || (hdlr->initialized != 0))
2952 hdlr->externalSubset = NULL;
2958 hdlr->getParameterEntity = NULL;
2960 hdlr->attributeDecl = NULL;
2961 hdlr->elementDecl = NULL;
2962 hdlr->notationDecl = NULL;
2963 hdlr->unparsedEntityDecl = NULL;
2971 hdlr->cdataBlock = NULL;
2973 hdlr->processingInstruction = NULL;