Lines Matching refs:child

930 	xmlNodePtr child, new_child, parentp, refp;  in PHP_FUNCTION()  local
944 DOM_GET_OBJ(child, node, xmlNodePtr, childobj); in PHP_FUNCTION()
951 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
956 if (dom_hierarchy(parentp, child) == FAILURE) { in PHP_FUNCTION()
961 if (child->doc != parentp->doc && child->doc != NULL) { in PHP_FUNCTION()
966 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
971 if (child->doc == NULL && parentp->doc != NULL) { in PHP_FUNCTION()
983 if (child->parent != NULL) { in PHP_FUNCTION()
984 xmlUnlinkNode(child); in PHP_FUNCTION()
987 if (child->type == XML_TEXT_NODE && (refp->type == XML_TEXT_NODE || in PHP_FUNCTION()
989 if (child->doc == NULL) { in PHP_FUNCTION()
990 xmlSetTreeDoc(child, parentp->doc); in PHP_FUNCTION()
992 new_child = child; in PHP_FUNCTION()
1006 } else if (child->type == XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
1009 if (child->ns == NULL) in PHP_FUNCTION()
1010 lastattr = xmlHasProp(refp->parent, child->name); in PHP_FUNCTION()
1012 lastattr = xmlHasNsProp(refp->parent, child->name, child->ns->href); in PHP_FUNCTION()
1014 if (lastattr != (xmlAttrPtr) child) { in PHP_FUNCTION()
1018 DOM_RET_OBJ(child, &ret, intern); in PHP_FUNCTION()
1022 } else if (child->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1023 new_child = _php_dom_insert_fragment(parentp, refp->prev, refp, child, intern, childobj); in PHP_FUNCTION()
1027 new_child = xmlAddPrevSibling(refp, child); in PHP_FUNCTION()
1030 if (child->parent != NULL){ in PHP_FUNCTION()
1031 xmlUnlinkNode(child); in PHP_FUNCTION()
1033 …if (child->type == XML_TEXT_NODE && parentp->last != NULL && parentp->last->type == XML_TEXT_NODE)… in PHP_FUNCTION()
1034 child->parent = parentp; in PHP_FUNCTION()
1035 if (child->doc == NULL) { in PHP_FUNCTION()
1036 xmlSetTreeDoc(child, parentp->doc); in PHP_FUNCTION()
1038 new_child = child; in PHP_FUNCTION()
1040 parentp->children = child; in PHP_FUNCTION()
1041 parentp->last = child; in PHP_FUNCTION()
1043 child = parentp->last; in PHP_FUNCTION()
1044 child->next = new_child; in PHP_FUNCTION()
1045 new_child->prev = child; in PHP_FUNCTION()
1048 } else if (child->type == XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
1051 if (child->ns == NULL) in PHP_FUNCTION()
1052 lastattr = xmlHasProp(parentp, child->name); in PHP_FUNCTION()
1054 lastattr = xmlHasNsProp(parentp, child->name, child->ns->href); in PHP_FUNCTION()
1056 if (lastattr != (xmlAttrPtr) child) { in PHP_FUNCTION()
1060 DOM_RET_OBJ(child, &ret, intern); in PHP_FUNCTION()
1064 } else if (child->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1065 new_child = _php_dom_insert_fragment(parentp, parentp->last, NULL, child, intern, childobj); in PHP_FUNCTION()
1068 new_child = xmlAddChild(parentp, child); in PHP_FUNCTION()
1179 xmlNodePtr children, child, nodep; in PHP_FUNCTION() local
1193 DOM_GET_OBJ(child, node, xmlNodePtr, childobj); in PHP_FUNCTION()
1198 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1210 if (children == child) { in PHP_FUNCTION()
1211 xmlUnlinkNode(child); in PHP_FUNCTION()
1212 DOM_RET_OBJ(child, &ret, intern); in PHP_FUNCTION()
1230 xmlNodePtr child, nodep, new_child = NULL; in PHP_FUNCTION() local
1244 DOM_GET_OBJ(child, node, xmlNodePtr, childobj); in PHP_FUNCTION()
1249 (child->parent != NULL && dom_node_is_read_only(child->parent) == SUCCESS)) { in PHP_FUNCTION()
1254 if (dom_hierarchy(nodep, child) == FAILURE) { in PHP_FUNCTION()
1259 if (!(child->doc == NULL || child->doc == nodep->doc)) { in PHP_FUNCTION()
1264 if (child->type == XML_DOCUMENT_FRAG_NODE && child->children == NULL) { in PHP_FUNCTION()
1269 if (child->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1274 if (child->parent != NULL){ in PHP_FUNCTION()
1275 xmlUnlinkNode(child); in PHP_FUNCTION()
1278 if (child->type == XML_TEXT_NODE && nodep->last != NULL && nodep->last->type == XML_TEXT_NODE) { in PHP_FUNCTION()
1279 child->parent = nodep; in PHP_FUNCTION()
1280 if (child->doc == NULL) { in PHP_FUNCTION()
1281 xmlSetTreeDoc(child, nodep->doc); in PHP_FUNCTION()
1283 new_child = child; in PHP_FUNCTION()
1285 nodep->children = child; in PHP_FUNCTION()
1286 nodep->last = child; in PHP_FUNCTION()
1288 child = nodep->last; in PHP_FUNCTION()
1289 child->next = new_child; in PHP_FUNCTION()
1290 new_child->prev = child; in PHP_FUNCTION()
1293 } else if (child->type == XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
1296 if (child->ns == NULL) in PHP_FUNCTION()
1297 lastattr = xmlHasProp(nodep, child->name); in PHP_FUNCTION()
1299 lastattr = xmlHasNsProp(nodep, child->name, child->ns->href); in PHP_FUNCTION()
1301 if (lastattr != (xmlAttrPtr) child) { in PHP_FUNCTION()
1306 } else if (child->type == XML_DOCUMENT_FRAG_NODE) { in PHP_FUNCTION()
1307 new_child = _php_dom_insert_fragment(nodep, nodep->last, NULL, child, intern, childobj); in PHP_FUNCTION()
1311 new_child = xmlAddChild(nodep, child); in PHP_FUNCTION()