Lines Matching refs:newNode
174 xmlNode *newNode; in dom_zvals_to_fragment() local
188 newNode = dom_object_get_node(newNodeObj); in dom_zvals_to_fragment()
190 if (newNode->parent != NULL) { in dom_zvals_to_fragment()
191 xmlUnlinkNode(newNode); in dom_zvals_to_fragment()
195 xmlSetTreeDoc(newNode, documentNode); in dom_zvals_to_fragment()
200 …bool will_free = newNode->type == XML_TEXT_NODE && fragment->last && fragment->last->type == XML_T… in dom_zvals_to_fragment()
202 newNode = xmlCopyNode(newNode, 0); in dom_zvals_to_fragment()
205 if (newNode->type == XML_DOCUMENT_FRAG_NODE) { in dom_zvals_to_fragment()
207 newNode = newNode->children; in dom_zvals_to_fragment()
208 while (newNode) { in dom_zvals_to_fragment()
209 xmlNodePtr next = newNode->next; in dom_zvals_to_fragment()
210 xmlUnlinkNode(newNode); in dom_zvals_to_fragment()
211 dom_add_child_without_merging(fragment, newNode); in dom_zvals_to_fragment()
212 newNode = next; in dom_zvals_to_fragment()
214 } else if (!xmlAddChild(fragment, newNode)) { in dom_zvals_to_fragment()
216 xmlFreeNode(newNode); in dom_zvals_to_fragment()
223 newNode = xmlNewDocText(documentNode, (xmlChar *) Z_STRVAL(nodes[i])); in dom_zvals_to_fragment()
225 xmlSetTreeDoc(newNode, documentNode); in dom_zvals_to_fragment()
227 if (!xmlAddChild(fragment, newNode)) { in dom_zvals_to_fragment()
228 xmlFreeNode(newNode); in dom_zvals_to_fragment()