Lines Matching refs:clone

8775 * @resNode: the clone of the given @node
8825 xmlNodePtr resultClone = NULL, clone = NULL, parentClone = NULL, prevClone = NULL;
8892 clone = (xmlNodePtr) xmlMalloc(sizeof(xmlNode));
8893 if (clone == NULL) {
8897 memset(clone, 0, sizeof(xmlNode));
8902 clone->parent = parentClone;
8904 prevClone->next = clone;
8905 clone->prev = prevClone;
8907 parentClone->children = clone;
8909 resultClone = clone;
8916 clone = (xmlNodePtr) xmlMalloc(sizeof(xmlAttr));
8917 if (clone == NULL) {
8921 memset(clone, 0, sizeof(xmlAttr));
8927 clone->parent = parentClone;
8929 prevClone->next = clone;
8930 clone->prev = prevClone;
8932 parentClone->properties = (xmlAttrPtr) clone;
8934 resultClone = clone;
8943 clone->type = cur->type;
8944 clone->doc = destDoc;
8950 clone->name = xmlStringText;
8957 clone->name = xmlStringTextNoenc;
8959 clone->name = xmlStringComment;
8961 DICT_CONST_COPY(cur->name, clone->name);
8992 cloneNsDefSlot = &(clone->nsDef);
9060 DICT_COPY(cur->content, clone->content);
9074 clone->content = ent->content;
9075 clone->children = (xmlNodePtr) ent;
9076 clone->last = (xmlNodePtr) ent;
9084 clone->content = cur->content;
9085 clone->children = cur->children;
9086 clone->last = cur->last;
9090 DICT_COPY(cur->content, clone->content);
9093 DICT_COPY(cur->content, clone->content);
9128 clone->ns = mi->newNs;
9148 clone->ns = ns;
9163 clone->ns = ns;
9173 if ((clone->type == XML_ATTRIBUTE_NODE) &&
9174 (clone->parent != NULL))
9176 if (xmlIsID(destDoc, clone->parent, (xmlAttrPtr) clone)) {
9200 parentClone = clone;
9211 parentClone = clone;
9250 prevClone = clone;
9254 * Set clone->last.
9256 if (clone->parent != NULL)
9257 clone->parent->last = clone;
9258 clone = clone->parent;
9259 parentClone = clone->parent;
9267 clone = clone->parent;
9268 parentClone = clone->parent;