Re: [xml] filtering a resulting NodeSet with xPath?

Agustín Villena wrote:
As I understand, xmlXPathNewContext expect an xmlDocPtr as its argument
Do you mean that I must create an xmlXPathContextPtr for every node from the previous resulting nodeSet?

If you want to apply an expression to a number of different contexts, create an xmlXPathCompExprPtr with xmlXPathCompile and use xmlXPathCompiledEval. But yes, as I understand it you need an xmlXPathContextPtr for each evaluation.
Chris Burdess

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]