Home
last modified time | relevance | path

Searched refs:xpathCtx (Results 1 – 2 of 2) sorted by relevance

/external/libxml2/doc/examples/
Dxpath1.c26 int register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList);
87 xmlXPathContextPtr xpathCtx; in execute_xpath_expression() local
101 xpathCtx = xmlXPathNewContext(doc); in execute_xpath_expression()
102 if(xpathCtx == NULL) { in execute_xpath_expression()
109 if((nsList != NULL) && (register_namespaces(xpathCtx, nsList) < 0)) { in execute_xpath_expression()
111 xmlXPathFreeContext(xpathCtx); in execute_xpath_expression()
117 xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); in execute_xpath_expression()
120 xmlXPathFreeContext(xpathCtx); in execute_xpath_expression()
130 xmlXPathFreeContext(xpathCtx); in execute_xpath_expression()
147 register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList) { in register_namespaces() argument
[all …]
Dxpath2.c87 xmlXPathContextPtr xpathCtx; in example4() local
102 xpathCtx = xmlXPathNewContext(doc); in example4()
103 if(xpathCtx == NULL) { in example4()
110 xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); in example4()
113 xmlXPathFreeContext(xpathCtx); in example4()
124 xmlXPathFreeContext(xpathCtx); in example4()