XML : Translating XPath to LINQ

I am having trouble with translating the following XPath queries into LINQ. I am not sure what to do with the position() method as I can't find a LINQ equivalent.

  (//table[@border='1'])[1]//tr[position() > 1 and position() < last()]    

Also, I can't find a LINQ version of the .// in the query:

  .//div[span/@title='Event group']    

Could someone help me translate these?

No comments:

Post a Comment