Home | History | Annotate | Download | only in libxml2

Lines Matching refs:root

1186     xmlNodePtr root = NULL;
1189 root = xmlDocGetRootElement(ctxt->doc);
1190 if (root == NULL)
1219 ret->seq = root;
1598 xmlNodePtr root, cur;
1649 root = xmlDocGetRootElement(doc);
1650 if (root != NULL) {
1651 if (xmlHasProp(root, BAD_CAST "ns") == NULL) {
1652 xmlSetProp(root, BAD_CAST "ns", ns);
1687 root = xmlDocGetRootElement(doc);
1688 if (root == NULL) {
1694 if (!IS_RELAXNG(root, "grammar")) {
1696 "xmlRelaxNG: included document %s root is not a grammar\n",
1710 xmlRelaxNGRemoveRedefine(ctxt, URL, root->children, NULL);
1729 root->children, name);
1934 xmlNodePtr root;
1979 root = xmlDocGetRootElement(doc);
1980 if (root != NULL) {
1981 if (xmlHasProp(root, BAD_CAST "ns") == NULL) {
1982 xmlSetProp(root, BAD_CAST "ns", ns);
4509 xmlNodePtr root;
4518 root = xmlDocGetRootElement(incl->doc);
4519 if (root == NULL) {
4524 if (!xmlStrEqual(root->name, BAD_CAST "grammar")) {
4526 "Include document root is not a grammar\n", NULL, NULL);
4533 if (root->children != NULL) {
4534 tmp = xmlRelaxNGParseGrammarContent(ctxt, root->children);
4631 xmlNodePtr root, tmp;
4647 root = xmlDocGetRootElement(docu->doc);
4648 if (root == NULL) {
4657 ns = xmlGetProp(root, BAD_CAST "ns");
4668 xmlSetProp(root, BAD_CAST "ns", ns);
4681 docu->schema = xmlRelaxNGParseDocument(ctxt, root);
4692 xmlUnsetProp(root, BAD_CAST "ns");
6507 * @node: the root node of the RelaxNG schema
6865 * @root: an xmlNodePtr subtree
6871 xmlRelaxNGCleanupTree(xmlRelaxNGParserCtxtPtr ctxt, xmlNodePtr root)
6876 cur = root;
7157 (cur != root)) {
7285 if (cur == root) {
7315 xmlNodePtr root;
7318 * Extract the root
7320 root = xmlDocGetRootElement(doc);
7321 if (root == NULL) {
7326 xmlRelaxNGCleanupTree(ctxt, root);
7345 xmlNodePtr root;
7395 root = xmlDocGetRootElement(doc);
7396 if (root == NULL) {
7405 ret = xmlRelaxNGParseDocument(ctxt, root);