Hi, I've following html code:
<td headers="header1"><b><a href="www.site.com">TITLE headers="header2"></td><td headers="header3" class="centrato">23/04/2014</td></tr>
I need to store in a datatable:
<td headers="header1"><b><a href="www.site.com">TITLE
I need to store in a datatable:
- HREF VALUE in "Link" column;
- TITLE in "Title" column;
-
23/04/2014 in "Date" column;
int i = 0;
foreach (HtmlNode node in tmlDoc.DocumentNode.SelectNodes("//td[@headers='header1']"))
{
table.Rows.Add();
table.Rows[i]["Post"] = node.InnerText;
i++;
}
This code allow me to add all Title in the datatable but I'm not able to add DATE and HREF, can you help me please?