Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 450

New Post: HTML Agility Pack: HREF

$
0
0
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:
  • HREF VALUE in "Link" column;
  • TITLE in "Title" column;
  • 23/04/2014 in "Date" column;
I tried this:
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?

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>