I need to evaluate a xpath expression within a given node context, not the entire document. I'm able to create the document context with xmlXPathNewContext. However it expects a document pointer and I can't find a similar function to accept any node pointer and returns a valid xpath context.
Is there any? I could find this:
Code:
xmlXPathNewParserContext(const xmlChar *str, xmlXPathContextPtr ctxt)
But I can't figure it out the right parameters.