Re: [xml] filtering a resulting NodeSet with xPath?
- From: Chris Burdess <dog bluezoo org>
- To: Agustín Villena <avillena tutopia com>
- Cc: xml gnome org
- Subject: Re: [xml] filtering a resulting NodeSet with xPath?
- Date: Tue, 23 Nov 2004 14:54:59 +0000
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]