How to select nodes by attribute that starts with… in C#

ashearas

New Member
I have this xml document and I want to select nodes by attribute that starts with '/employees/'.\[code\]<table> <tr> <td> <a href="http://stackoverflow.com/employees/1.html" title="Employee 1">Employee 1</a> </td> <td>Robert</td> </tr> <tr> <td> <a href="http://stackoverflow.com/employees/2.html" title="Employee 2">Employee 2</a> </td> <td>Jennifer</td> </tr></table>\[/code\]So in C#, I would do something like this:\[code\]parentNode.SelectNodes("//table/tr/th/a[@href='http://stackoverflow.com/employees/.....']")\[/code\]Is this possible with C#?Thanks!
 
Back
Top