Home | History | Annotate | Download | only in libxml2

Lines Matching refs:root

3940           xmlNodePtr root = target;
3943 while (root->parent != NULL) {
3944 pred = root;
3945 root = root->parent;
3947 if (root == (xmlNodePtr) target->doc) {
3949 root = pred;
3951 ret->ns = xmlNewNs(root, ns->href, ns->prefix);
4178 xmlNodePtr root = ret;
4180 while (root->parent != NULL) root = root->parent;
4181 ret->ns = xmlNewNs(root, ns->href, ns->prefix);
4759 * Get the root element of the document (doc->children is a list
4762 * Returns the #xmlNodePtr for the root or NULL
4782 * @root: the new document root element, if root is NULL no action is taken,
4783 * to remove a node from a document use xmlUnlinkNode(root) instead.
4785 * Set the root element of the document (doc->children is a list
4788 * Returns the old root element if any was found, NULL if root was NULL
4791 xmlDocSetRootElement(xmlDocPtr doc, xmlNodePtr root) {
4795 if (root == NULL)
4797 xmlUnlinkNode(root);
4798 xmlSetTreeDoc(root, doc);
4799 root->parent = (xmlNodePtr) doc;
4808 doc->children = root;
4809 doc->last = root;
4811 xmlAddSibling(doc->children, root);
4814 xmlReplaceNode(old, root);
5838 * The XML-1.0 namespace is normally held on the root
5971 * The XML-1.0 namespace is normally held on the root