Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

16
  • 1
    Thanks so much! Sorry I totally forgot the precedence things.. I just tried and it works! Commented Sep 10, 2010 at 13:03
  • 1
    @Kymair-Wu: I am glad this answer was useful to you. Here at SO the way of expressing gratitude is by accepting an answer (hint: click on the check-mark next to the answer). :) Commented Sep 13, 2010 at 14:33
  • 3
    @Eytoss, You are welcome. And yes, I am getting most +1s for relatively simple answers -- not for the answers that I believe are my biggest achievements -- probably because everybody understands the former and almost nobody understands the latter :) Commented Oct 29, 2012 at 22:26
  • 2
    @TEHEMPRAH, Actually I saw that in the answer I didn't say "the 3rd 'someName' child of its parent". Thanks for noticing this. Corrected now. Commented Sep 2, 2015 at 15:42
  • 2
    "Note also, index values in XPath predicates (technically, 'proximity positions' of XPath node sets) start from 1, not 0 as common in languages like C and Java." Commented May 26, 2021 at 6:11