Home | History | Annotate | Download | only in libxml2

Lines Matching refs:root

262  * set of nodes currently open from the document root to the current element.
6344 * Try to validate a the root element
6347 * - [ VC: Root Element Type ]
6355 xmlNodePtr root;
6360 root = xmlDocGetRootElement(doc);
6361 if ((root == NULL) || (root->name == NULL)) {
6363 "no root element\n", NULL);
6374 * Check first the document root against the NQName
6376 if (!xmlStrEqual(doc->intSubset->name, root->name)) {
6377 if ((root->ns != NULL) && (root->ns->prefix != NULL)) {
6381 fullname = xmlBuildQName(root->name, root->ns->prefix, fn, 50);
6387 if ((fullname != fn) && (fullname != root->name))
6393 (xmlStrEqual(root->name, BAD_CAST "html")))
6395 xmlErrValidNode(ctxt, root, XML_DTD_ROOT_NAME,
6396 "root and DTD name do not match '%s' and '%s'\n",
6397 root->name, doc->intSubset->name, NULL);
6657 xmlNodePtr root;
6679 root = xmlDocGetRootElement(doc);
6680 ret = xmlValidateElement(ctxt, doc, root);
6844 xmlNodePtr root;
6896 root = xmlDocGetRootElement(doc);
6897 ret &= xmlValidateElement(ctxt, doc, root);