Run the inner path with "." to indicate that you want to start with the current node. The initial "/" is always looking from the root of an xml document, even if you specify it in a sub-tray.
So:
XmlNodeList tableCells = tableRow.SelectNodes(".//td");
or even
XmlNodeList tableCells = tableRow.SelectNodes("./td");
as those <td> are probably directly below this <tr> .
Hans kesting
source share