Harikrishna
Harikrishna

Reputation: 4305

Parsing or Extracting the content of html table

Can I parse the html tables by giving only column name ?

Like only those data should be extracted from the table which matches those column names I give.

Like for example I have table of column names like serial no., name, address, phone no,total Rs..

And I want to extract the information about only name, phone no and total Rs.. Then how can I do it?

Upvotes: 2

Views: 2556

Answers (3)

Mike Two
Mike Two

Reputation: 46173

Take a look at Html Agility Pack It provides an LINQ api for searching html content.

Upvotes: 3

sashaeve
sashaeve

Reputation: 9607

You can use Data Extracting SDK which has HtmlProcessor class with Tables property which handles HTML tables as DataTable objects.

Upvotes: 1

DarkwingDuck
DarkwingDuck

Reputation: 2706

Yes you can. You can use XPATH to scan your html document (google for screen scraping). Another technique is UI testing frameworks like Watin which let you use CSS selectors and more to find elements on a HTML page and get the contents.

Upvotes: 2

Related Questions