Lines Matching refs:doc
2784 * @doc: an input document
2796 xmlXPathOrderDocElems(xmlDocPtr doc) {
2800 if (doc == NULL)
2802 cur = doc->children;
2819 if (cur == (xmlNodePtr) doc) {
2899 (node1->doc == node2->doc)) {
2962 (node1->doc == node2->doc)) {
3013 (node1->doc == node2->doc))
3186 (node1->doc == node2->doc)) {
3254 (node1->doc == node2->doc)) {
5314 top->doc = top;
5983 * @doc: the XML document
5990 xmlXPathNewContext(xmlDocPtr doc) {
5999 ret->doc = doc;
6081 if ((ctxt == NULL) || (ctxt->doc == NULL) || \
6082 (ctxt->doc->children == NULL)) { \
7754 if (ctxt->context->node == (xmlNodePtr) ctxt->context->doc)
7755 return(ctxt->context->doc->children);
7858 return((xmlNodePtr) ctxt->context->doc);
7931 return((xmlNodePtr) ctxt->context->doc);
7963 if (cur == ctxt->context->doc->children)
7964 return((xmlNodePtr) ctxt->context->doc);
7965 if (cur == (xmlNodePtr) ctxt->context->doc)
8054 if (cur == (xmlNodePtr) ctxt->context->doc)
8079 if (cur == (xmlNodePtr) ctxt->context->doc)
8115 if (cur == (xmlNodePtr) ctxt->context->doc) return(NULL);
8134 if (ancestor->doc != node->doc) return(0);
8136 if (ancestor == (xmlNodePtr) node->doc) return(1);
8137 if (node == (xmlNodePtr) ancestor->doc) return(0);
8178 if (cur == ctxt->context->doc->children)
8218 if (cur == ctxt->context->doc->children)
8252 xmlGetNsList(ctxt->context->doc, ctxt->context->node);
8289 if (ctxt->context->node == (xmlNodePtr) ctxt->context->doc)
8321 ctxt->context->node = (xmlNodePtr) ctxt->context->doc;
8434 * @doc: the document
8442 xmlXPathGetElementsByIds (xmlDocPtr doc, const xmlChar *ids) {
8469 attr = xmlGetID(doc, ID);
8531 ns = xmlXPathGetElementsByIds(ctxt->context->doc, tokens);
8543 ret = xmlXPathGetElementsByIds(ctxt->context->doc, obj->stringval);
11556 oldContextDoc = xpctxt->doc;
11576 (contextNode->doc != NULL))
11577 xpctxt->doc = contextNode->doc;
11638 xpctxt->doc = oldContextDoc;
11701 oldContextDoc = xpctxt->doc;
11721 (contextNode->doc != NULL))
11722 xpctxt->doc = contextNode->doc;
11824 xpctxt->doc = oldContextDoc;
12693 bakd = ctxt->context->doc;
12714 ctxt->context->doc = bakd;
12980 oldDoc = ctxt->context->doc;
13017 (oldset->nodeTab[i]->doc != NULL))
13018 ctxt->context->doc = oldset->nodeTab[i]->doc;
13080 ctxt->context->doc = oldDoc;
13114 bakd = ctxt->context->doc;
13124 ctxt->context->doc = bakd;
13140 bakd = ctxt->context->doc;
13150 ctxt->context->doc = bakd;
13166 bakd = ctxt->context->doc;
13172 ctxt->context->doc = bakd;
13185 bakd = ctxt->context->doc;
13191 ctxt->context->doc = bakd;
13201 bakd = ctxt->context->doc;
13208 ctxt->context->doc = bakd;
13227 bakd = ctxt->context->doc;
13233 ctxt->context->doc = bakd;
13247 bakd = ctxt->context->doc;
13253 ctxt->context->doc = bakd;
13406 bakd = ctxt->context->doc;
13415 ctxt->context->doc = bakd;
13419 ctxt->context->doc = bakd;
13646 oldDoc = ctxt->context->doc;
13706 (oldset->nodeTab[i]->doc != NULL))
13707 ctxt->context->doc = oldset->nodeTab[i]->doc;
13774 ctxt->context->doc = oldDoc;
14105 (xmlNodePtr) ctxt->doc);
14118 cur = (xmlNodePtr)ctxt->doc;