Lines Matching refs:xpathCtx
26 int register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList);
87 xmlXPathContextPtr xpathCtx;
101 xpathCtx = xmlXPathNewContext(doc);
102 if(xpathCtx == NULL) {
109 if((nsList != NULL) && (register_namespaces(xpathCtx, nsList) < 0)) {
111 xmlXPathFreeContext(xpathCtx);
117 xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx);
120 xmlXPathFreeContext(xpathCtx);
130 xmlXPathFreeContext(xpathCtx);
138 * @xpathCtx: the pointer to an XPath context.
142 * Registers namespaces from @nsList in @xpathCtx.
147 register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList) {
153 assert(xpathCtx);
186 if(xmlXPathRegisterNs(xpathCtx, prefix, href) != 0) {