Re: [xml] multiple XPath evaluations on the same document

On 15/10/2009, IRENE SIPIKA <piotreks optonline net> wrote:

Or is there a way for me to use the current 'element' node as the root
for the next xpath query?

Set the 'node' member of the xmlXpathContext to the new context node:

Or with the python bindings, use the setContextNode method on the
xpathContext object.

You can also compile the xpath expression and use xmlXPathCompiledEval
if you're using it more than once.


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