Parsing Tabular cell data with space where there is td tag.
Posted
by Harikrishna
on Stack Overflow
See other posts from Stack Overflow
or by Harikrishna
Published on 2010-04-03T10:37:45Z
Indexed on
2010/04/03
10:43 UTC
Read the original article
Hit count: 202
I am parsing html tabular information with the help of the html agility pack. Now First I am finding the rows in that table like
var rows = table.Descendants("tr");
then I find the cell data for each row like
foreach(var row in rows)
{
string rowInnerText = row.InnerText;
}
That gives me the cell data.But with no spaces between them like NameAdressPhone No but I want the innertext like Name Address Phone No means where there is td tag I want to keep there one space between different column cell.
© Stack Overflow or respective owner