Lines Matching refs:cur
204 xmlNodePtr cur = aNode; in lcl_nsexchange() local
205 while (cur != 0) in lcl_nsexchange()
207 if (cur->ns == oldNs) in lcl_nsexchange()
208 cur->ns = newNs; in lcl_nsexchange()
209 if (cur->type == XML_ELEMENT_NODE) in lcl_nsexchange()
211 xmlAttrPtr curAttr = cur->properties; in lcl_nsexchange()
218 lcl_nsexchange(cur->children, oldNs, newNs); in lcl_nsexchange()
220 cur = cur->next; in lcl_nsexchange()
226 xmlNodePtr cur = aNode; in nscleanup() local
229 if (cur != NULL && cur->type == XML_ELEMENT_NODE) in nscleanup()
231 xmlAttrPtr curAttr = cur->properties; in nscleanup()
236 xmlNsPtr ns = xmlSearchNs(cur->doc, aParent, curAttr->ns->prefix); in nscleanup()
244 while (cur != NULL) in nscleanup()
246 nscleanup(cur->children, cur); in nscleanup()
247 if (cur->ns != NULL) in nscleanup()
249 xmlNsPtr ns = xmlSearchNs(cur->doc, aParent, cur->ns->prefix); in nscleanup()
250 if (ns != NULL && ns != cur->ns && strcmp((char*)ns->href, (char*)cur->ns->href)==0) in nscleanup()
252 xmlNsPtr curDef = cur->nsDef; in nscleanup()
253 xmlNsPtr *refp = &(cur->nsDef); // insert point in nscleanup()
256 ns = xmlSearchNs(cur->doc, aParent, curDef->prefix); in nscleanup()
261 lcl_nsexchange(cur, curDef, ns); in nscleanup()
272 cur = cur->next; in nscleanup()
307 xmlNodePtr const cur = pNewChild->GetNodePtr(); in appendChild() local
308 if (!cur) { throw RuntimeException(); } in appendChild()
312 if (cur->doc != m_aNodePtr->doc) { in appendChild()
318 if (cur == m_aNodePtr) { in appendChild()
323 if (cur->parent != NULL) { in appendChild()
336 if (cur->type == XML_ATTRIBUTE_NODE) in appendChild()
338 xmlChar const*const pChildren((cur->children) in appendChild()
339 ? cur->children->content in appendChild()
346 xmlNewNsProp(m_aNodePtr, pNs, cur->name, pChildren)); in appendChild()
349 xmlNewProp(m_aNodePtr, cur->name, pChildren)); in appendChild()
354 res = xmlAddChild(m_aNodePtr, cur); in appendChild()
359 if (res && (cur != res)) { in appendChild()
713 xmlNodePtr cur = m_aNodePtr->children; in insertBefore() local
716 while (cur != NULL) in insertBefore()
718 if (cur == pRefChild) { in insertBefore()
720 pNewChild->next = cur; in insertBefore()
721 pNewChild->prev = cur->prev; in insertBefore()
722 cur->prev = pNewChild; in insertBefore()
726 pNewChild->parent = cur->parent; in insertBefore()
727 if (pNewChild->parent->children == cur) { in insertBefore()
734 cur = cur->next; in insertBefore()
913 xmlNodePtr cur = m_aNodePtr->children; in replaceChild() local
915 while (cur != NULL) in replaceChild()
917 if(cur == pOld) in replaceChild()
937 cur = cur->next; in replaceChild()