Lines Matching refs:newNode
169 xmlNode *newNode; in dom_zvals_to_fragment() local
183 newNode = dom_object_get_node(newNodeObj); in dom_zvals_to_fragment()
185 if (newNode->parent != NULL) { in dom_zvals_to_fragment()
186 xmlUnlinkNode(newNode); in dom_zvals_to_fragment()
190 xmlSetTreeDoc(newNode, documentNode); in dom_zvals_to_fragment()
195 …bool will_free = newNode->type == XML_TEXT_NODE && fragment->last && fragment->last->type == XML_T… in dom_zvals_to_fragment()
197 newNode = xmlCopyNode(newNode, 0); in dom_zvals_to_fragment()
200 if (newNode->type == XML_DOCUMENT_FRAG_NODE) { in dom_zvals_to_fragment()
202 newNode = newNode->children; in dom_zvals_to_fragment()
203 while (newNode) { in dom_zvals_to_fragment()
204 xmlNodePtr next = newNode->next; in dom_zvals_to_fragment()
205 xmlUnlinkNode(newNode); in dom_zvals_to_fragment()
206 dom_add_child_without_merging(fragment, newNode); in dom_zvals_to_fragment()
207 newNode = next; in dom_zvals_to_fragment()
209 } else if (!xmlAddChild(fragment, newNode)) { in dom_zvals_to_fragment()
211 xmlFreeNode(newNode); in dom_zvals_to_fragment()
218 newNode = xmlNewDocText(documentNode, (xmlChar *) Z_STRVAL(nodes[i])); in dom_zvals_to_fragment()
220 if (!xmlAddChild(fragment, newNode)) { in dom_zvals_to_fragment()
221 xmlFreeNode(newNode); in dom_zvals_to_fragment()