<p>Can I use Xpath node set function position() in Delphi's function selectNodes() to select only a certain number of element from a node list? If I do like this: </p>

<pre><code>selectNodes('Item[1]') 
</code></pre>

<p>its all fine and I get the element with index 1, but when I try </p>

<pre><code>selectNodes('Item[position()&lt;10]')
</code></pre>

<p>I get exception 'unknown method', when I try </p>

<pre><code>selectNodes('Item[&lt;10]') 
</code></pre>

<p>I get 'unexpected token &lt;'. 
Im using delphi7 and I also imported new type library into my project with newer versions of msxml.</p>

selectNodes requires a string, so you should try:
```
```
selectNodes('Item[position()<10]')
```
```
Or whatever xpath query.