Lines Matching refs:nodeTab
942 xmlXPathDebugDumpNode(output, cur->nodeTab[i], depth + 1);
956 if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) {
965 xmlXPathDebugDumpNodeList(output, cur->nodeTab[0]->children, depth + 1);
1826 if (obj->nodesetval->nodeTab != NULL)
1827 xmlFree(obj->nodesetval->nodeTab);
2033 ret->nodesetval->nodeTab[0] = val;
3336 if (xmlXPathCmpNodesExt(set->nodeTab[j],
3337 set->nodeTab[j + incr]) == -1)
3339 if (xmlXPathCmpNodes(set->nodeTab[j],
3340 set->nodeTab[j + incr]) == -1)
3343 tmp = set->nodeTab[j];
3344 set->nodeTab[j] = set->nodeTab[j + incr];
3345 set->nodeTab[j + incr] = tmp;
3434 ret->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT *
3436 if (ret->nodeTab == NULL) {
3441 memset(ret->nodeTab, 0 ,
3447 ret->nodeTab[ret->nodeNr++] =
3450 ret->nodeTab[ret->nodeNr++] = val;
3475 ret->nodeTab = (xmlNodePtr *) xmlMalloc(size * sizeof(xmlNodePtr));
3476 if (ret->nodeTab == NULL) {
3481 memset(ret->nodeTab, 0 , size * (size_t) sizeof(xmlNodePtr));
3502 if (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) {
3506 ns2 = (xmlNsPtr) cur->nodeTab[i];
3516 if (cur->nodeTab[i] == val)
3546 if ((cur->nodeTab[i] != NULL) &&
3547 (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) &&
3548 (((xmlNsPtr)cur->nodeTab[i])->next == (xmlNsPtr) node) &&
3549 (xmlStrEqual(ns->prefix, ((xmlNsPtr)cur->nodeTab[i])->prefix)))
3554 * grow the nodeTab if needed
3557 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT *
3559 if (cur->nodeTab == NULL) {
3563 memset(cur->nodeTab, 0 ,
3569 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 *
3576 cur->nodeTab = temp;
3578 cur->nodeTab[cur->nodeNr++] = xmlXPathNodeSetDupNs(node, ns);
3604 if (cur->nodeTab[i] == val) return;
3607 * grow the nodeTab if needed
3610 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT *
3612 if (cur->nodeTab == NULL) {
3616 memset(cur->nodeTab, 0 ,
3623 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax *
3629 cur->nodeTab = temp;
3634 cur->nodeTab[cur->nodeNr++] =
3637 cur->nodeTab[cur->nodeNr++] = val;
3659 * grow the nodeTab if needed
3662 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT *
3664 if (cur->nodeTab == NULL) {
3668 memset(cur->nodeTab, 0 ,
3674 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 *
3680 cur->nodeTab = temp;
3686 cur->nodeTab[cur->nodeNr++] =
3689 cur->nodeTab[cur->nodeNr++] = val;
3728 *(val1->nodeTab) = *(val2->nodeTab);
3730 memcpy(val1->nodeTab, val2->nodeTab,
3743 n2 = val2->nodeTab[i];
3749 n1 = val1->nodeTab[j];
3768 * grow the nodeTab if needed
3771 val1->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT *
3773 if (val1->nodeTab == NULL) {
3777 memset(val1->nodeTab, 0 ,
3783 temp = (xmlNodePtr *) xmlRealloc(val1->nodeTab, val1->nodeMax * 2 *
3789 val1->nodeTab = temp;
3795 val1->nodeTab[val1->nodeNr++] =
3798 val1->nodeTab[val1->nodeNr++] = n2;
3828 * grow the nodeTab if needed
3831 val1->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT *
3833 if (val1->nodeTab == NULL) {
3837 memset(val1->nodeTab, 0 ,
3844 temp = (xmlNodePtr *) xmlRealloc(val1->nodeTab, val1->nodeMax *
3850 val1->nodeTab = temp;
3852 if (val2->nodeTab[i]->type == XML_NAMESPACE_DECL) {
3853 xmlNsPtr ns = (xmlNsPtr) val2->nodeTab[i];
3855 val1->nodeTab[val1->nodeNr++] =
3858 val1->nodeTab[val1->nodeNr++] = val2->nodeTab[i];
3890 memcpy(set1->nodeTab, set2->nodeTab,
3903 n2 = set2->nodeTab[i];
3913 n1 = set1->nodeTab[j];
3926 set2->nodeTab[i] = NULL;
3933 * grow the nodeTab if needed
3936 set1->nodeTab = (xmlNodePtr *) xmlMalloc(
3938 if (set1->nodeTab == NULL) {
3942 memset(set1->nodeTab, 0,
3949 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr));
3954 set1->nodeTab = temp;
3960 set1->nodeTab[set1->nodeNr++] =
3963 set1->nodeTab[set1->nodeNr++] = n2;
3999 memcpy(set1->nodeTab, set2->nodeTab,
4011 n2 = set2->nodeTab[i];
4018 set1->nodeTab = (xmlNodePtr *) xmlMalloc(
4020 if (set1->nodeTab == NULL) {
4024 memset(set1->nodeTab, 0,
4031 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr));
4036 set1->nodeTab = temp;
4039 set1->nodeTab[set1->nodeNr++] = n2;
4061 * find node in nodeTab
4064 if (cur->nodeTab[i] == val) break;
4074 if ((cur->nodeTab[i] != NULL) &&
4075 (cur->nodeTab[i]->type == XML_NAMESPACE_DECL))
4076 xmlXPathNodeSetFreeNs((xmlNsPtr) cur->nodeTab[i]);
4079 cur->nodeTab[i] = cur->nodeTab[i + 1];
4080 cur->nodeTab[cur->nodeNr] = NULL;
4094 if ((cur->nodeTab[val] != NULL) &&
4095 (cur->nodeTab[val]->type == XML_NAMESPACE_DECL))
4096 xmlXPathNodeSetFreeNs((xmlNsPtr) cur->nodeTab[val]);
4099 cur->nodeTab[val] = cur->nodeTab[val + 1];
4100 cur->nodeTab[cur->nodeNr] = NULL;
4112 if (obj->nodeTab != NULL) {
4117 if ((obj->nodeTab[i] != NULL) &&
4118 (obj->nodeTab[i]->type == XML_NAMESPACE_DECL))
4119 xmlXPathNodeSetFreeNs((xmlNsPtr) obj->nodeTab[i]);
4120 xmlFree(obj->nodeTab);
4143 node = set->nodeTab[i];
4171 node = set->nodeTab[i];
4193 if (obj->nodeTab != NULL) {
4195 if (obj->nodeTab[i] != NULL) {
4196 if (obj->nodeTab[i]->type == XML_NAMESPACE_DECL) {
4197 xmlXPathNodeSetFreeNs((xmlNsPtr) obj->nodeTab[i]);
4199 xmlFreeNodeList(obj->nodeTab[i]);
4203 xmlFree(obj->nodeTab);
4229 if (obj->nodeTab == NULL) {
4230 fprintf(output, " nodeTab == NULL !\n");
4234 if (obj->nodeTab[i] == NULL) {
4238 if ((obj->nodeTab[i]->type == XML_DOCUMENT_NODE) ||
4239 (obj->nodeTab[i]->type == XML_HTML_DOCUMENT_NODE))
4241 else if (obj->nodeTab[i]->name == NULL)
4243 else fprintf(output, " %s", obj->nodeTab[i]->name);
4324 else if (val->nodeTab == NULL)
4327 ret = xmlXPathNewNodeSet(val->nodeTab[0]);
4329 xmlXPathNodeSetAddUnique(ret->nodesetval, val->nodeTab[i]);
5331 (val->nodesetval->nodeTab != NULL)) {
5338 xmlStrdup(val->nodesetval->nodeTab[0]->name);
5342 cur = val->nodesetval->nodeTab[0]->children;
5529 node = tmpset->nodeTab[i];
5537 if ((tmpset->nodeTab[0] != NULL) &&
5538 (tmpset->nodeTab[0]->type == XML_NAMESPACE_DECL))
5539 xmlXPathNodeSetFreeNs((xmlNsPtr) tmpset->nodeTab[0]);
5648 if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL))
5653 return(xmlXPathCastNodeToString(ns->nodeTab[0]));
6395 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]);
6450 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]);
6539 val1 = xmlXPathCastNodeToNumber(ns1->nodeTab[i]);
6544 values2[j] = xmlXPathCastNodeToNumber(ns2->nodeTab[j]);
6650 if (xmlXPathNodeValHash(ns->nodeTab[i]) == hash) {
6651 str2 = xmlNodeGetContent(ns->nodeTab[i]);
6705 str2 = xmlXPathCastNodeToString(ns->nodeTab[i]);
6782 if (ns1->nodeTab[i] == ns2->nodeTab[j])
6814 hashs1[i] = xmlXPathNodeValHash(ns1->nodeTab[i]);
6817 hashs2[j] = xmlXPathNodeValHash(ns2->nodeTab[j]);
6826 values1[i] = xmlNodeGetContent(ns1->nodeTab[i]);
6828 values2[j] = xmlNodeGetContent(ns2->nodeTab[j]);
8453 (cur->nodesetval->nodeTab == NULL)) {
8459 tmp = cur->nodesetval->nodeTab[0];
8564 xmlXPathCastNodeToString(obj->nodesetval->nodeTab[i]);
8619 switch (cur->nodesetval->nodeTab[i]->type) {
8623 if (cur->nodesetval->nodeTab[i]->name[0] == ' ')
8628 cur->nodesetval->nodeTab[i]->name));
8632 ((xmlNsPtr)cur->nodesetval->nodeTab[i])->prefix));
8677 switch (cur->nodesetval->nodeTab[i]->type) {
8680 if (cur->nodesetval->nodeTab[i]->ns == NULL)
8684 cur->nodesetval->nodeTab[i]->ns->href));
8738 switch (cur->nodesetval->nodeTab[i]->type) {
8741 if (cur->nodesetval->nodeTab[i]->name[0] == ' ')
8744 else if ((cur->nodesetval->nodeTab[i]->ns == NULL) ||
8745 (cur->nodesetval->nodeTab[i]->ns->prefix == NULL)) {
8748 cur->nodesetval->nodeTab[i]->name));
8752 fullname = xmlBuildQName(cur->nodesetval->nodeTab[i]->name,
8753 cur->nodesetval->nodeTab[i]->ns->prefix,
8755 if (fullname == cur->nodesetval->nodeTab[i]->name)
8756 fullname = xmlStrdup(cur->nodesetval->nodeTab[i]->name);
8766 cur->nodesetval->nodeTab[i]));
9519 res += xmlXPathCastNodeToNumber(cur->nodesetval->nodeTab[i]);
11595 if (set->nodeTab[i] == NULL)
11598 contextNode = set->nodeTab[i];
11637 set->nodeTab[i] = NULL;
11742 if (set->nodeTab[i] == NULL)
11745 contextNode = set->nodeTab[i];
11806 set->nodeTab[i] = NULL;
11810 set->nodeTab[0] = contextNode;
11824 set->nodeTab[i] = NULL;
12193 outerContextNode = contextSeq->nodeTab[contextIdx++];
12204 xpctxt->node = contextSeq->nodeTab[contextIdx++];
12626 *first = ctxt->value->nodesetval->nodeTab[0];
12751 ctxt->value->nodesetval->nodeTab[ctxt->value->
12880 (ctxt->value->nodesetval->nodeTab != NULL) &&
12882 ctxt->value->nodesetval->nodeTab[0] =
12883 ctxt->value->nodesetval->nodeTab[ctxt->
12889 *first = *(ctxt->value->nodesetval->nodeTab);
13055 ctxt->context->node = oldset->nodeTab[i];
13056 if ((oldset->nodeTab[i]->type != XML_NAMESPACE_DECL) &&
13057 (oldset->nodeTab[i]->doc != NULL))
13058 ctxt->context->doc = oldset->nodeTab[i]->doc;
13082 xmlXPathNodeSetAdd(newset, oldset->nodeTab[i]);
13105 *first = *(newset->nodeTab);
13555 (ctxt->value->nodesetval->nodeTab != NULL) &&
13557 ctxt->value->nodesetval->nodeTab[0] =
13558 ctxt->value->nodesetval->nodeTab[ctxt->
13752 ctxt->context->node = oldset->nodeTab[i];
13753 if ((oldset->nodeTab[i]->type != XML_NAMESPACE_DECL) &&
13754 (oldset->nodeTab[i]->doc != NULL))
13755 ctxt->context->doc = oldset->nodeTab[i]->doc;
13791 xmlXPathNodeSetAdd(newset, oldset->nodeTab[i]);
13952 ctxt->context->node = oldset->nodeTab[i];
13971 xmlXPtrNewRangeNodeObject(oldset->nodeTab[i],