Home | History | Annotate | Download | only in libxml2

Lines Matching full:children

122     xmlNodePtr ulccur = (n)->children;					\
912 cur = doc->children;
991 if (doc->children == NULL) {
992 doc->children = (xmlNodePtr) cur;
998 prev = doc->children;
1001 doc->children = (xmlNodePtr) cur;
1005 next = doc->children;
1017 doc->children = (xmlNodePtr) cur;
1097 if (cur->children != NULL) {
1098 xmlNodePtr next, c = cur->children;
1214 * Do this before freeing the children list to avoid ID lookups
1235 if (cur->children != NULL) xmlFreeNodeList(cur->children);
1382 else if ((ent != NULL) && (ent->children == NULL)) {
1385 ent->children = xmlStringGetNodeList(doc,
1388 temp = ent->children;
1567 else if ((ent != NULL) && (ent->children == NULL)) {
1570 ent->children = xmlStringGetNodeList(doc,
1573 temp = ent->children;
1675 buffer = xmlNodeListGetString(doc, ent->children, 1);
1758 xmlNodeListGetRawString(doc, ent->children, 1);
1846 cur->children = xmlNewDocText(doc, value);
1848 tmp = cur->children;
1998 cur->children = xmlStringGetNodeList(doc, value);
2001 tmp = cur->children;
2019 * Free a property and all its siblings, all the children are freed too.
2052 if (cur->children != NULL) xmlFreeNodeList(cur->children);
2282 cur->children = xmlStringGetNodeList(doc, content);
2315 cur->children = xmlStringGetNodeList(doc, content);
2349 cur->children = xmlNewDocText(doc, content);
2426 * Creation of a new child element, added at the end of @parent children list.
2481 * add the new element at the end of the children list.
2486 if (parent->children == NULL) {
2487 parent->children = cur;
2590 cur->children = (xmlNodePtr) ent;
2769 xmlSetListDoc(prop->children, doc);
2773 if (tree->children != NULL)
2774 xmlSetListDoc(tree->children, doc);
2808 * Creation of a new child element, added at the end of @parent children list.
2861 * add the new element at the end of the children list.
2866 if (parent->children == NULL) {
2867 parent->children = cur;
2938 * If the new node is ATTRIBUTE, it is added into properties instead of children.
3016 * If the new node is ATTRIBUTE, it is added into properties instead of children.
3078 if ((elem->parent != NULL) && (elem->parent->children == cur)) {
3079 elem->parent->children = elem;
3130 (cur->parent->children != NULL) &&
3202 * add the first element at the end of the children list.
3205 if (parent->children == NULL) {
3206 parent->children = cur;
3254 * If the new node is ATTRIBUTE, it is added into properties instead of children.
3308 * add the new element at the end of the children list.
3363 if (parent->children == NULL) {
3364 parent->children = cur;
3424 cur = parent->children;
3459 cur = parent->children;
3593 * the children are freed too.
3621 if ((cur->children != NULL) &&
3623 xmlFreeNodeList(cur->children);
3662 * Free a node, this is a recursive behaviour, all the children are freed too.
3695 if ((cur->children != NULL) &&
3697 xmlFreeNodeList(cur->children);
3786 if (parent->children == cur)
3787 parent->children = cur->next;
3857 if (cur->parent->children == old)
3858 cur->parent->children = cur;
3942 else if (cur->children != NULL)
3943 ret = xmlNewDocProp(cur->children->doc, cur->name, NULL);
3995 if (cur->children != NULL) {
3998 ret->children = xmlStaticCopyNodeList(cur->children, ret->doc, (xmlNodePtr) ret);
4000 tmp = ret->children;
4017 id = xmlNodeListGetString(cur->doc, cur->children, 1);
4087 * namespace info, but don't recurse on children.
4225 ret->children = (xmlNodePtr) xmlGetDocEntity(doc, ret->name);
4227 ret->children = node->children;
4229 ret->last = ret->children;
4230 } else if ((node->children != NULL) && (extended != 2)) {
4231 ret->children = xmlStaticCopyNodeList(node->children, doc, ret);
4285 * @extended: if 1 do a recursive copy (properties, namespaces and children
4305 * @extended: if 1 do a recursive copy (properties, namespaces and children
4382 cur = dtd->children;
4420 ret->children = q;
4466 ret->children = NULL;
4476 if (doc->children != NULL) {
4479 ret->children = xmlStaticCopyNodeList(doc->children, ret,
4482 tmp = ret->children;
4784 * Get the root element of the document (doc->children is a list
4794 ret = doc->children;
4810 * Set the root element of the document (doc->children is a list
4825 old = doc->children;
4832 if (doc->children == NULL) {
4833 doc->children = root;
4836 xmlAddSibling(doc->children, root);
5154 cur = doc->children;
5161 cur = cur->children;
5165 cur = cur->children;
5257 if (tmp->children != NULL) {
5258 if (tmp->children->type != XML_ENTITY_DECL) {
5259 tmp = tmp->children;
5289 xmlNodePtr tmp = attr->children;
5318 tmp = ent->children;
5337 cur = cur->children;
5489 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5490 cur->children = xmlStringGetNodeList(cur->doc, content);
5505 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5506 cur->last = cur->children = NULL;
5566 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5567 cur->children = xmlStringLenGetNodeList(cur->doc, content, len);
5583 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5584 cur->children = cur->last = NULL;
6290 if ((node->children != NULL) && (node->type != XML_ENTITY_REF_NODE)) {
6292 node = node->children;
6448 if (prop->children != NULL) {
6449 if ((prop->children->next == NULL) &&
6450 ((prop->children->type == XML_TEXT_NODE) ||
6451 (prop->children->type == XML_CDATA_SECTION_NODE)))
6456 return(xmlStrdup(prop->children->content));
6460 ret = xmlNodeListGetString(prop->doc, prop->children, 1);
6733 if (prop->children != NULL)
6734 xmlFreeNodeList(prop->children);
6735 prop->children = NULL;
6747 prop->children = xmlNewDocText(node->doc, value);
6749 tmp = prop->children;
8110 (node->children != NULL)) {
8111 node = node->children;
8715 (cur->children != NULL)) {
8719 cur = cur->children;
9031 cur->children = NULL;
9041 cur->children = (xmlNodePtr) ent;
9058 if (cur->children != NULL) {
9059 cur = cur->children;
9095 (cur->parent->children != NULL))
9097 cur = cur->parent->children;
9267 parentClone->children = clone;
9435 clone->children = (xmlNodePtr) ent;
9445 clone->children = cur->children;
9540 idVal = xmlNodeListGetString(cur->doc, cur->children, 1);
9568 if (cur->children != NULL) {
9572 cur = cur->children;
9630 * Process parent-element --> children.
9735 if (attr->children == NULL)
9737 cur = attr->children;
9750 cur->children = NULL;
9760 cur->children = (xmlNodePtr) ent;
9768 if (cur->children != NULL) {
9769 cur = cur->children;
9887 node->children = NULL;
9897 node->children = (xmlNodePtr) ent;