Lines Matching refs:newNode
158 xmlNode *newNode; in dom_zvals_to_fragment() local
172 newNode = dom_object_get_node(newNodeObj); in dom_zvals_to_fragment()
174 if (newNode->parent != NULL) { in dom_zvals_to_fragment()
175 xmlUnlinkNode(newNode); in dom_zvals_to_fragment()
179 xmlSetTreeDoc(newNode, documentNode); in dom_zvals_to_fragment()
184 …bool will_free = newNode->type == XML_TEXT_NODE && fragment->last && fragment->last->type == XML_T… in dom_zvals_to_fragment()
186 newNode = xmlCopyNode(newNode, 1); in dom_zvals_to_fragment()
189 if (newNode->type == XML_DOCUMENT_FRAG_NODE) { in dom_zvals_to_fragment()
191 newNode = newNode->children; in dom_zvals_to_fragment()
192 while (newNode) { in dom_zvals_to_fragment()
193 xmlNodePtr next = newNode->next; in dom_zvals_to_fragment()
194 xmlUnlinkNode(newNode); in dom_zvals_to_fragment()
195 if (!xmlAddChild(fragment, newNode)) { in dom_zvals_to_fragment()
198 newNode = next; in dom_zvals_to_fragment()
200 } else if (!xmlAddChild(fragment, newNode)) { in dom_zvals_to_fragment()
202 xmlFreeNode(newNode); in dom_zvals_to_fragment()
209 newNode = xmlNewDocText(documentNode, (xmlChar *) Z_STRVAL(nodes[i])); in dom_zvals_to_fragment()
211 xmlSetTreeDoc(newNode, documentNode); in dom_zvals_to_fragment()
213 if (!xmlAddChild(fragment, newNode)) { in dom_zvals_to_fragment()
214 xmlFreeNode(newNode); in dom_zvals_to_fragment()