Lines Matching refs:doc
2773 * @doc: an input document
2785 xmlXPathOrderDocElems(xmlDocPtr doc) {
2789 if (doc == NULL)
2791 cur = doc->children;
2808 if (cur == (xmlNodePtr) doc) {
2886 (node1->doc == node2->doc)) {
2949 (node1->doc == node2->doc)) {
3000 (node1->doc == node2->doc))
3172 (node1->doc == node2->doc)) {
3240 (node1->doc == node2->doc)) {
5282 top->doc = top;
5948 * @doc: the XML document
5955 xmlXPathNewContext(xmlDocPtr doc) {
5964 ret->doc = doc;
6046 if ((ctxt == NULL) || (ctxt->doc == NULL) || \
6047 (ctxt->doc->children == NULL)) { \
7719 if (ctxt->context->node == (xmlNodePtr) ctxt->context->doc)
7720 return(ctxt->context->doc->children);
7823 return((xmlNodePtr) ctxt->context->doc);
7896 return((xmlNodePtr) ctxt->context->doc);
7928 if (cur == ctxt->context->doc->children)
7929 return((xmlNodePtr) ctxt->context->doc);
7930 if (cur == (xmlNodePtr) ctxt->context->doc)
8019 if (cur == (xmlNodePtr) ctxt->context->doc)
8044 if (cur == (xmlNodePtr) ctxt->context->doc)
8080 if (cur == (xmlNodePtr) ctxt->context->doc) return(NULL);
8099 if (ancestor->doc != node->doc) return(0);
8101 if (ancestor == (xmlNodePtr) node->doc) return(1);
8102 if (node == (xmlNodePtr) ancestor->doc) return(0);
8143 if (cur == ctxt->context->doc->children)
8183 if (cur == ctxt->context->doc->children)
8217 xmlGetNsList(ctxt->context->doc, ctxt->context->node);
8254 if (ctxt->context->node == (xmlNodePtr) ctxt->context->doc)
8286 ctxt->context->node = (xmlNodePtr) ctxt->context->doc;
8399 * @doc: the document
8407 xmlXPathGetElementsByIds (xmlDocPtr doc, const xmlChar *ids) {
8432 attr = xmlGetID(doc, ID);
8489 ns = xmlXPathGetElementsByIds(ctxt->context->doc, tokens);
8501 ret = xmlXPathGetElementsByIds(ctxt->context->doc, obj->stringval);
11510 oldContextDoc = xpctxt->doc;
11530 (contextNode->doc != NULL))
11531 xpctxt->doc = contextNode->doc;
11594 xpctxt->doc = oldContextDoc;
11657 oldContextDoc = xpctxt->doc;
11677 (contextNode->doc != NULL))
11678 xpctxt->doc = contextNode->doc;
11773 xpctxt->doc = oldContextDoc;
12630 bakd = ctxt->context->doc;
12651 ctxt->context->doc = bakd;
12917 oldDoc = ctxt->context->doc;
12953 (oldset->nodeTab[i]->doc != NULL))
12954 ctxt->context->doc = oldset->nodeTab[i]->doc;
13016 ctxt->context->doc = oldDoc;
13050 bakd = ctxt->context->doc;
13060 ctxt->context->doc = bakd;
13076 bakd = ctxt->context->doc;
13086 ctxt->context->doc = bakd;
13102 bakd = ctxt->context->doc;
13108 ctxt->context->doc = bakd;
13121 bakd = ctxt->context->doc;
13127 ctxt->context->doc = bakd;
13137 bakd = ctxt->context->doc;
13144 ctxt->context->doc = bakd;
13163 bakd = ctxt->context->doc;
13169 ctxt->context->doc = bakd;
13183 bakd = ctxt->context->doc;
13189 ctxt->context->doc = bakd;
13342 bakd = ctxt->context->doc;
13351 ctxt->context->doc = bakd;
13355 ctxt->context->doc = bakd;
13582 oldDoc = ctxt->context->doc;
13642 (oldset->nodeTab[i]->doc != NULL))
13643 ctxt->context->doc = oldset->nodeTab[i]->doc;
13710 ctxt->context->doc = oldDoc;
14041 (xmlNodePtr) ctxt->doc);
14054 cur = (xmlNodePtr)ctxt->doc;