MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathNodeEval

Function xmlXPathNodeEval

ThirdParty/libxml2/vtklibxml2/xpath.c:13351–13358  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

13349 * the caller has to free the object.
13350 */
13351xmlXPathObjectPtr
13352xmlXPathNodeEval(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:

Callers

nothing calls this directly

Calls 2

xmlXPathSetContextNodeFunction · 0.85
xmlXPathEvalFunction · 0.85

Tested by

no test coverage detected