Lines Matching refs:newchild

745 	xmlNodePtr newchild, node;  in dom_insert_fragment()  local
747 newchild = fragment->children; in dom_insert_fragment()
749 if (newchild) { in dom_insert_fragment()
751 nodep->children = newchild; in dom_insert_fragment()
753 prevsib->next = newchild; in dom_insert_fragment()
755 newchild->prev = prevsib; in dom_insert_fragment()
763 node = newchild; in dom_insert_fragment()
784 return newchild; in dom_insert_fragment()
1093 xmlNodePtr newchild, oldchild, nodep; in dom_node_replace_child() local
1103 DOM_GET_OBJ(newchild, newnode, xmlNodePtr, newchildobj); in dom_node_replace_child()
1108 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in dom_node_replace_child()
1114 if (dom_replace_node_validity_checks(nodep, newchild, oldchild) != SUCCESS) { in dom_node_replace_child()
1127 (newchild->parent != NULL && dom_node_is_read_only(newchild->parent) == SUCCESS)) { in dom_node_replace_child()
1132 if (dom_hierarchy(nodep, newchild) == FAILURE) { in dom_node_replace_child()
1143 if (newchild->type == XML_DOCUMENT_FRAG_NODE) { in dom_node_replace_child()
1150 xmlNodePtr last = newchild->last; in dom_node_replace_child()
1151 newchild = dom_insert_fragment(nodep, prevsib, nextsib, newchild, intern); in dom_node_replace_child()
1152 if (newchild && !modern) { in dom_node_replace_child()
1153 dom_reconcile_ns_list(nodep->doc, newchild, last); in dom_node_replace_child()
1155 } else if (oldchild != newchild) { in dom_node_replace_child()
1159 if (newchild->doc == NULL && nodep->doc != NULL) { in dom_node_replace_child()
1160 xmlSetTreeDoc(newchild, nodep->doc); in dom_node_replace_child()
1164 xmlReplaceNode(oldchild, newchild); in dom_node_replace_child()
1166 dom_reconcile_ns(nodep->doc, newchild); in dom_node_replace_child()
1170 nodep->doc->intSubset = (xmlDtd *) newchild; in dom_node_replace_child()