Can I search by ordinal position?

Topics: Developer Forum
Jul 28, 2010 at 11:24 PM
Edited Jul 28, 2010 at 11:25 PM
I'm trying to do a search like this: SelectNodes("//table[@class='content'][1]") In pure XPath, that would give me the FIRST table with a class of "content" (the "[1]" designates ordinal -- the first one, in this case). However, the result of that line of code returns TWO nodes, which should be impossible, since I'm asking for a specific ordinal. This makes me think that search for nodes by ordinal is not supported. True?
Aug 12, 2010 at 9:17 AM

try to add ()