[Home] [By Thread] [By Date] [Recent Entries]
At 2007-12-26 18:17 +0530, Mukul Gandhi wrote:
Incidentally, for the above example, I would write the expression as: //c[parent::b] //c[parent::f] (in these examples, we filter nodes using a predicate). Have you considered instead the following equivalent addresses: //b/c //f/c or //c (if you want to select all 'c' elements everywhere in the tree). Remembering, though, in all the above cases that "//" can be an expensive XPath address and should be used sparingly. I hope this helps. . . . . . . . . . . . Ken
|

Cart



