Lines Matching refs:child
1002 xmlNodePtr child, new_child, parentp, refp; in PHP_FUNCTION() local
1016 DOM_GET_OBJ(child, node, xmlNodePtr, childobj); in PHP_FUNCTION()
1023 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1028 if (dom_hierarchy(parentp, child) == FAILURE) { in PHP_FUNCTION()
1033 if (child->doc != parentp->doc && child->doc != NULL) { in PHP_FUNCTION()
1038 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
1043 if (child->doc == NULL && parentp->doc != NULL) { in PHP_FUNCTION()
1055 if (child->parent != NULL) { in PHP_FUNCTION()
1056 xmlUnlinkNode(child); in PHP_FUNCTION()
1059 if (child->type == XML_TEXT_NODE && (refp->type == XML_TEXT_NODE || in PHP_FUNCTION()
1061 if (child->doc == NULL) { in PHP_FUNCTION()
1062 xmlSetTreeDoc(child, parentp->doc); in PHP_FUNCTION()
1064 new_child = child; in PHP_FUNCTION()
1078 } else if (child->type == XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
1081 if (child->ns == NULL) in PHP_FUNCTION()
1082 lastattr = xmlHasProp(refp->parent, child->name); in PHP_FUNCTION()
1084 lastattr = xmlHasNsProp(refp->parent, child->name, child->ns->href); in PHP_FUNCTION()
1086 if (lastattr != (xmlAttrPtr) child) { in PHP_FUNCTION()
1090 DOM_RET_OBJ_EX(child, &ret, intern); in PHP_FUNCTION()
1094 } else if (child->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1095 …new_child = _php_dom_insert_fragment(parentp, refp->prev, refp, child, intern, childobj TSRMLS_CC); in PHP_FUNCTION()
1099 new_child = xmlAddPrevSibling(refp, child); in PHP_FUNCTION()
1102 if (child->parent != NULL){ in PHP_FUNCTION()
1103 xmlUnlinkNode(child); in PHP_FUNCTION()
1105 …if (child->type == XML_TEXT_NODE && parentp->last != NULL && parentp->last->type == XML_TEXT_NODE)… in PHP_FUNCTION()
1106 child->parent = parentp; in PHP_FUNCTION()
1107 if (child->doc == NULL) { in PHP_FUNCTION()
1108 xmlSetTreeDoc(child, parentp->doc); in PHP_FUNCTION()
1110 new_child = child; in PHP_FUNCTION()
1112 parentp->children = child; in PHP_FUNCTION()
1113 parentp->last = child; in PHP_FUNCTION()
1115 child = parentp->last; in PHP_FUNCTION()
1116 child->next = new_child; in PHP_FUNCTION()
1117 new_child->prev = child; in PHP_FUNCTION()
1120 } else if (child->type == XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
1123 if (child->ns == NULL) in PHP_FUNCTION()
1124 lastattr = xmlHasProp(parentp, child->name); in PHP_FUNCTION()
1126 lastattr = xmlHasNsProp(parentp, child->name, child->ns->href); in PHP_FUNCTION()
1128 if (lastattr != (xmlAttrPtr) child) { in PHP_FUNCTION()
1132 DOM_RET_OBJ_EX(child, &ret, intern); in PHP_FUNCTION()
1136 } else if (child->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1137 …new_child = _php_dom_insert_fragment(parentp, parentp->last, NULL, child, intern, childobj TSRMLS_… in PHP_FUNCTION()
1140 new_child = xmlAddChild(parentp, child); in PHP_FUNCTION()
1251 xmlNodePtr children, child, nodep; in PHP_FUNCTION() local
1265 DOM_GET_OBJ(child, node, xmlNodePtr, childobj); in PHP_FUNCTION()
1270 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1282 if (children == child) { in PHP_FUNCTION()
1283 xmlUnlinkNode(child); in PHP_FUNCTION()
1284 DOM_RET_OBJ_EX(child, &ret, intern); in PHP_FUNCTION()
1302 xmlNodePtr child, nodep, new_child = NULL; in PHP_FUNCTION() local
1316 DOM_GET_OBJ(child, node, xmlNodePtr, childobj); in PHP_FUNCTION()
1321 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1326 if (dom_hierarchy(nodep, child) == FAILURE) { in PHP_FUNCTION()
1331 if (!(child->doc == NULL || child->doc == nodep->doc)) { in PHP_FUNCTION()
1336 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
1341 if (child->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1346 if (child->parent != NULL){ in PHP_FUNCTION()
1347 xmlUnlinkNode(child); in PHP_FUNCTION()
1350 if (child->type == XML_TEXT_NODE && nodep->last != NULL && nodep->last->type == XML_TEXT_NODE) { in PHP_FUNCTION()
1351 child->parent = nodep; in PHP_FUNCTION()
1352 if (child->doc == NULL) { in PHP_FUNCTION()
1353 xmlSetTreeDoc(child, nodep->doc); in PHP_FUNCTION()
1355 new_child = child; in PHP_FUNCTION()
1357 nodep->children = child; in PHP_FUNCTION()
1358 nodep->last = child; in PHP_FUNCTION()
1360 child = nodep->last; in PHP_FUNCTION()
1361 child->next = new_child; in PHP_FUNCTION()
1362 new_child->prev = child; in PHP_FUNCTION()
1365 } else if (child->type == XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
1368 if (child->ns == NULL) in PHP_FUNCTION()
1369 lastattr = xmlHasProp(nodep, child->name); in PHP_FUNCTION()
1371 lastattr = xmlHasNsProp(nodep, child->name, child->ns->href); in PHP_FUNCTION()
1373 if (lastattr != (xmlAttrPtr) child) { in PHP_FUNCTION()
1378 } else if (child->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1379 new_child = _php_dom_insert_fragment(nodep, nodep->last, NULL, child, intern, childobj TSRMLS_CC); in PHP_FUNCTION()
1383 new_child = xmlAddChild(nodep, child); in PHP_FUNCTION()