Lines Matching refs:children
121 xmlNodePtr ulccur = (n)->children; \
900 cur = doc->children;
979 if (doc->children == NULL) {
980 doc->children = (xmlNodePtr) cur;
986 prev = doc->children;
989 doc->children = (xmlNodePtr) cur;
993 next = doc->children;
1005 doc->children = (xmlNodePtr) cur;
1085 if (cur->children != NULL) {
1086 xmlNodePtr next, c = cur->children;
1202 * Do this before freeing the children list to avoid ID lookups
1223 if (cur->children != NULL) xmlFreeNodeList(cur->children);
1370 else if ((ent != NULL) && (ent->children == NULL)) {
1373 ent->children = xmlStringGetNodeList(doc,
1376 temp = ent->children;
1555 else if ((ent != NULL) && (ent->children == NULL)) {
1558 ent->children = xmlStringGetNodeList(doc,
1561 temp = ent->children;
1665 buffer = xmlNodeListGetString(doc, ent->children, 1);
1748 xmlNodeListGetRawString(doc, ent->children, 1);
1836 cur->children = xmlNewDocText(doc, value);
1838 tmp = cur->children;
1987 cur->children = xmlStringGetNodeList(doc, value);
1990 tmp = cur->children;
2008 * Free a property and all its siblings, all the children are freed too.
2041 if (cur->children != NULL) xmlFreeNodeList(cur->children);
2271 cur->children = xmlStringGetNodeList(doc, content);
2304 cur->children = xmlStringGetNodeList(doc, content);
2338 cur->children = xmlNewDocText(doc, content);
2415 * Creation of a new child element, added at the end of @parent children list.
2470 * add the new element at the end of the children list.
2475 if (parent->children == NULL) {
2476 parent->children = cur;
2579 cur->children = (xmlNodePtr) ent;
2758 xmlSetListDoc(prop->children, doc);
2762 if (tree->children != NULL)
2763 xmlSetListDoc(tree->children, doc);
2797 * Creation of a new child element, added at the end of @parent children list.
2850 * add the new element at the end of the children list.
2855 if (parent->children == NULL) {
2856 parent->children = cur;
2927 * If the new node is ATTRIBUTE, it is added into properties instead of children.
3005 * If the new node is ATTRIBUTE, it is added into properties instead of children.
3067 if ((elem->parent != NULL) && (elem->parent->children == cur)) {
3068 elem->parent->children = elem;
3111 (cur->parent->children != NULL) &&
3183 * add the first element at the end of the children list.
3186 if (parent->children == NULL) {
3187 parent->children = cur;
3235 * If the new node is ATTRIBUTE, it is added into properties instead of children.
3289 * add the new element at the end of the children list.
3344 if (parent->children == NULL) {
3345 parent->children = cur;
3405 cur = parent->children;
3440 cur = parent->children;
3574 * the children are freed too.
3602 if ((cur->children != NULL) &&
3604 xmlFreeNodeList(cur->children);
3643 * Free a node, this is a recursive behaviour, all the children are freed too.
3676 if ((cur->children != NULL) &&
3678 xmlFreeNodeList(cur->children);
3765 if (parent->children == cur)
3766 parent->children = cur->next;
3836 if (cur->parent->children == old)
3837 cur->parent->children = cur;
3921 else if (cur->children != NULL)
3922 ret = xmlNewDocProp(cur->children->doc, cur->name, NULL);
3974 if (cur->children != NULL) {
3977 ret->children = xmlStaticCopyNodeList(cur->children, ret->doc, (xmlNodePtr) ret);
3979 tmp = ret->children;
3996 id = xmlNodeListGetString(cur->doc, cur->children, 1);
4066 * namespace info, but don't recurse on children.
4200 ret->children = (xmlNodePtr) xmlGetDocEntity(doc, ret->name);
4202 ret->children = node->children;
4204 ret->last = ret->children;
4205 } else if ((node->children != NULL) && (extended != 2)) {
4206 ret->children = xmlStaticCopyNodeList(node->children, doc, ret);
4260 * @extended: if 1 do a recursive copy (properties, namespaces and children
4280 * @extended: if 1 do a recursive copy (properties, namespaces and children
4357 cur = dtd->children;
4395 ret->children = q;
4441 ret->children = NULL;
4451 if (doc->children != NULL) {
4454 ret->children = xmlStaticCopyNodeList(doc->children, ret,
4457 tmp = ret->children;
4759 * Get the root element of the document (doc->children is a list
4769 ret = doc->children;
4785 * Set the root element of the document (doc->children is a list
4800 old = doc->children;
4807 if (doc->children == NULL) {
4808 doc->children = root;
4811 xmlAddSibling(doc->children, root);
5129 cur = doc->children;
5136 cur = cur->children;
5140 cur = cur->children;
5232 if (tmp->children != NULL) {
5233 if (tmp->children->type != XML_ENTITY_DECL) {
5234 tmp = tmp->children;
5264 xmlNodePtr tmp = attr->children;
5293 tmp = ent->children;
5312 cur = cur->children;
5464 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5465 cur->children = xmlStringGetNodeList(cur->doc, content);
5480 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5481 cur->last = cur->children = NULL;
5541 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5542 cur->children = xmlStringLenGetNodeList(cur->doc, content, len);
5558 if (cur->children != NULL) xmlFreeNodeList(cur->children);
5559 cur->children = cur->last = NULL;
6265 if ((node->children != NULL) && (node->type != XML_ENTITY_REF_NODE)) {
6267 node = node->children;
6423 if (prop->children != NULL) {
6424 if ((prop->children->next == NULL) &&
6425 ((prop->children->type == XML_TEXT_NODE) ||
6426 (prop->children->type == XML_CDATA_SECTION_NODE)))
6431 return(xmlStrdup(prop->children->content));
6435 ret = xmlNodeListGetString(prop->doc, prop->children, 1);
6708 if (prop->children != NULL)
6709 xmlFreeNodeList(prop->children);
6710 prop->children = NULL;
6722 prop->children = xmlNewDocText(node->doc, value);
6724 tmp = prop->children;
8080 (node->children != NULL)) {
8081 node = node->children;
8685 (cur->children != NULL)) {
8689 cur = cur->children;
9001 cur->children = NULL;
9011 cur->children = (xmlNodePtr) ent;
9028 if (cur->children != NULL) {
9029 cur = cur->children;
9065 (cur->parent->children != NULL))
9067 cur = cur->parent->children;
9237 parentClone->children = clone;
9405 clone->children = (xmlNodePtr) ent;
9415 clone->children = cur->children;
9510 idVal = xmlNodeListGetString(cur->doc, cur->children, 1);
9538 if (cur->children != NULL) {
9542 cur = cur->children;
9600 * Process parent-element --> children.
9705 if (attr->children == NULL)
9707 cur = attr->children;
9720 cur->children = NULL;
9730 cur->children = (xmlNodePtr) ent;
9738 if (cur->children != NULL) {
9739 cur = cur->children;
9857 node->children = NULL;
9867 node->children = (xmlNodePtr) ent;