Lines Matching refs:newchild
804 xmlNodePtr newchild = fragment->children; in dom_insert_fragment() local
806 if (newchild) { in dom_insert_fragment()
808 nodep->children = newchild; in dom_insert_fragment()
810 prevsib->next = newchild; in dom_insert_fragment()
812 newchild->prev = prevsib; in dom_insert_fragment()
821 xmlNodePtr node = newchild; in dom_insert_fragment()
834 return newchild; in dom_insert_fragment()
1165 xmlNodePtr newchild, oldchild, nodep; in dom_node_replace_child() local
1175 DOM_GET_OBJ(newchild, newnode, xmlNodePtr, newchildobj); in dom_node_replace_child()
1180 if (newchild->doc != nodep->doc && newchild->doc != NULL) { in dom_node_replace_child()
1186 if (dom_replace_node_validity_checks(nodep, newchild, oldchild) != SUCCESS) { in dom_node_replace_child()
1198 if (!dom_node_check_legacy_insertion_validity(nodep, newchild, stricterror, false)) { in dom_node_replace_child()
1204 if ((oldchild->type == XML_ATTRIBUTE_NODE) != (newchild->type == XML_ATTRIBUTE_NODE)) { in dom_node_replace_child()
1215 if (newchild->doc == NULL && nodep->doc != NULL) { in dom_node_replace_child()
1216 xmlSetTreeDoc(newchild, nodep->doc); in dom_node_replace_child()
1217 dom_set_document_ref_pointers(newchild, intern->document); in dom_node_replace_child()
1220 if (newchild->type == XML_DOCUMENT_FRAG_NODE) { in dom_node_replace_child()
1227 xmlNodePtr last = newchild->last; in dom_node_replace_child()
1228 newchild = dom_insert_fragment(nodep, prevsib, nextsib, newchild, intern); in dom_node_replace_child()
1229 if (newchild && !modern) { in dom_node_replace_child()
1230 dom_reconcile_ns_list(nodep->doc, newchild, last); in dom_node_replace_child()
1232 } else if (oldchild != newchild) { in dom_node_replace_child()
1236 xmlReplaceNode(oldchild, newchild); in dom_node_replace_child()
1238 dom_reconcile_ns(nodep->doc, newchild); in dom_node_replace_child()
1242 nodep->doc->intSubset = (xmlDtd *) newchild; in dom_node_replace_child()