* xmlXPathNodeEval: * @node: the node to to use as the context node * @str: the XPath expression * @ctx: the XPath context * * Evaluate the XPath Location Path in the given context. The node 'node' * is set as the context node. The context node is not restored. * * Returns the xmlXPathObjectPtr resulting from the evaluation or NULL. * the caller has to free the object. */
| 13349 | * the caller has to free the object. |
| 13350 | */ |
| 13351 | xmlXPathObjectPtr |
| 13352 | xmlXPathNodeEval(xmlNodePtr node, const xmlChar *str, xmlXPathContextPtr ctx) { |
| 13353 | if (str == NULL) |
| 13354 | return(NULL); |
| 13355 | if (xmlXPathSetContextNode(node, ctx) < 0) |
| 13356 | return(NULL); |
| 13357 | return(xmlXPathEval(str, ctx)); |
| 13358 | } |
| 13359 | |
| 13360 | /** |
| 13361 | * xmlXPathEvalExpression: |
nothing calls this directly
no test coverage detected