[xml] XPath Question



Hi All,
 
I am trying to libxml2 and the associated xpath to find nodes in the following way:
 
//ns:toplevel/ns:secondlevel[i]
 
where 'i' is 1 - last()
 
On the first time through (i == 1) this xpath returns al nodeset with all //toplevel/secondlevel nodes. The second time (i == 2) it returns an empty nodeset.
 
I need to get each secondlevel node, one at a time, is this xpath correct, or is there some other way to do this?
 
Thanks
 
 Glenn


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