4 ms·
xpath is awesome, especially once you understand what an axis is. And that is what I've found most people who have trouble with it don't understand - like what
by gopalv 13y ago
xpath is awesome, especially once you understand what an axis is.
And that is what I've found most people who have trouble with it don't understand - like what exactly following-sibling or child means.
I spent about 2 months writing my own xpath evaluator once and it gets so much easier (to implement too) when you understand this is just a tree-traversal with an iterator following the axis.
Unfortunately the axis syntax makes it very verbose to read.