I'm trying to process some XML with LINQ (vb.net) to return all rows between two specific rows:
XML:
<ss:Table>
<ss:Row ss:FirstRow="true">...</ss:Row>
<ss:Row>1</ss:Row>
<ss:Row>2</ss:Row>
<ss:Row>3</ss:Row>
<ss:Row ss:LastRow="true">...</ss:Row>
</ss:Table>
I can grab the starting row using the following:
Dim Rows = From item In dg...<Table>...<Row> Select item Where item.@ss:FirstRow = "true"
But I bet there is a LINQ elegant way of getting rows with (1,2,3). Obviously I can't find it or I wouldn't be asking here. Thanks!