title: Get a specific number of results from an XmlDocument XPath query
body: <p>I'm querying a Twitter RSS feed and supplying the results into a Repeater for display. I'd like to only get the first 5 results of the XPath query. Is there a way to do that in the XPath syntax or do I have to loop over the resulting <code>XmlNodeList</code> to pull out the first 5?</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
  XmlTextReader reader = new XmlTextReader(rssPath);
  doc.Load(reader);
  
  XmlNodeList items = doc.SelectNodes("/rss/channel/item");
  
  rptTwitter.ItemDataBound += new RepeaterItemEventHandler(rptTwitter_ItemDataBound);
  rptTwitter.DataSource = items;
  rptTwitter.DataBind();
  </code></pre>