Lines Matching refs:lastChild
2519 xmlNodePtr lastChild; in xmlSAX2Characters() local
2539 lastChild = ctxt->node->last; in xmlSAX2Characters()
2549 if (lastChild == NULL) { in xmlSAX2Characters()
2550 lastChild = xmlSAX2TextNode(ctxt, ch, len); in xmlSAX2Characters()
2551 if (lastChild != NULL) { in xmlSAX2Characters()
2552 ctxt->node->children = lastChild; in xmlSAX2Characters()
2553 ctxt->node->last = lastChild; in xmlSAX2Characters()
2554 lastChild->parent = ctxt->node; in xmlSAX2Characters()
2555 lastChild->doc = ctxt->node->doc; in xmlSAX2Characters()
2563 int coalesceText = (lastChild != NULL) && in xmlSAX2Characters()
2564 (lastChild->type == XML_TEXT_NODE) && in xmlSAX2Characters()
2565 (lastChild->name == xmlStringText); in xmlSAX2Characters()
2574 if (lastChild->content == (xmlChar *)&(lastChild->properties)) { in xmlSAX2Characters()
2575 lastChild->content = xmlStrdup(lastChild->content); in xmlSAX2Characters()
2576 lastChild->properties = NULL; in xmlSAX2Characters()
2578 (xmlDictOwns(ctxt->dict, lastChild->content))) { in xmlSAX2Characters()
2579 lastChild->content = xmlStrdup(lastChild->content); in xmlSAX2Characters()
2581 if (lastChild->content == NULL) { in xmlSAX2Characters()
2601 newbuf = (xmlChar *) xmlRealloc(lastChild->content,size); in xmlSAX2Characters()
2607 lastChild->content = newbuf; in xmlSAX2Characters()
2609 memcpy(&lastChild->content[ctxt->nodelen], ch, len); in xmlSAX2Characters()
2611 lastChild->content[ctxt->nodelen] = 0; in xmlSAX2Characters()
2613 if (xmlTextConcat(lastChild, ch, len)) { in xmlSAX2Characters()
2617 ctxt->nodelen = xmlStrlen(lastChild->content); in xmlSAX2Characters()
2622 lastChild = xmlSAX2TextNode(ctxt, ch, len); in xmlSAX2Characters()
2623 if (lastChild != NULL) { in xmlSAX2Characters()
2624 xmlAddChild(ctxt->node, lastChild); in xmlSAX2Characters()
2791 xmlNodePtr ret, lastChild; in xmlSAX2CDataBlock() local
2798 lastChild = xmlGetLastChild(ctxt->node); in xmlSAX2CDataBlock()
2803 if ((lastChild != NULL) && in xmlSAX2CDataBlock()
2804 (lastChild->type == XML_CDATA_SECTION_NODE)) { in xmlSAX2CDataBlock()
2805 xmlTextConcat(lastChild, value, len); in xmlSAX2CDataBlock()