Home | History | Annotate | Download | only in libxml2

Lines Matching full:ancestor

382      * get the nearest common ancestor.
3362 * get the nearest common ancestor.
8022 * Traversal function for the "ancestor" direction
8023 * the ancestor axis contains the ancestors of the context node; the ancestors
8147 * Traversal function for the "ancestor-or-self" direction
8148 * he ancestor-or-self axis contains the context node and ancestors of
8257 * @ancestor: the ancestor node
8260 * Check that @ancestor is a @node's ancestor
8262 * returns 1 if @ancestor is a @node's ancestor, 0 otherwise.
8265 xmlXPathIsAncestor(xmlNodePtr ancestor, xmlNodePtr node) {
8266 if ((ancestor == NULL) || (node == NULL)) return(0);
8269 if (ancestor->type == XML_NAMESPACE_DECL)
8272 if (ancestor->doc != node->doc) return(0);
8273 /* avoid searching if ancestor or node is the root node */
8274 if (ancestor == (xmlNodePtr) node->doc) return(1);
8275 if (node == (xmlNodePtr) ancestor->doc) return(0);
8277 if (node->parent == ancestor)
8338 * state kept in the parser context: ctxt->ancestor.
8353 ctxt->ancestor = cur->parent;
8365 if (cur != ctxt->ancestor)
8367 ctxt->ancestor = cur->parent;
9536 * xml:lang attribute on the nearest ancestor of the context node that
11236 * [6] AxisName ::= 'ancestor'
11237 * | 'ancestor-or-self'
11257 if (xmlStrEqual(name, BAD_CAST "ancestor"))
11259 if (xmlStrEqual(name, BAD_CAST "ancestor-or-self"))
12163 * not in the ancestor-or-self axis of the other, then we could safely