The value of html is stored in string. I need to parse the html and get the html values of tr's with only that are checked. For example, In the html snippet below, I need to get only tr that are checked.
<table>
<tr>
<th></th>
<th>Day</th>
<th>Code</th>
</tr>
<tr>
<td><input type="checkbox" id="GridVeiw1_c1_checkbox1" type="checkbox" /></td>
<td>Sunday</td>
<td>ABCD</td>
</tr>
<tr>
<td><input type="checkbox" id="GridVeiw1_c2_checkbox1" type="checkbox" checked="checked" /></td>
<td>Monday</td>
<td>ABCD</td>
</tr>
<tr>
<td><input type="checkbox" id="GridVeiw1_c3_checkbox1" type="checkbox" /></td>
<td>Tuesdat</td>
<td>ABCD</td>
</tr>
</table>
For the above I need rows only with checked="Checked". Sample output as below
<table>
<tr>
<th></th>
<th>Day</th>
<th>Code</th>
</tr>
<tr>
<td><input type="checkbox" id="GridVeiw1_c2_checkbox1" type="checkbox" checked="checked" /></td>
<td>Monday</td>
<td>ABCD</td>
</tr>
</table>