By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,617 Members | 1,605 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,617 IT Pros & Developers. It's quick & easy.

Parsing HTML Tables

P: n/a
Hi Geezers,

I need some code which will parse and strip attributes from a table in a
textbox. Basically, I need to paste in the table and run a little routing to
convert the table into a DataTable.

Does anyone have such code or know where I can obtain it ?

Cheers
Dec 29 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Just Me" <news.microsoft.comschrieb:
I need some code which will parse and strip attributes from a table in a
textbox. Basically, I need to paste in the table and run a little routing
to convert the table into a DataTable.
Parsing an HTML file:

MSHTML Reference
<URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/reference.asp>

- or -

..NET Html Agility Pack: How to use malformed HTML just like it was
well-formed XML...
<URL:http://blogs.msdn.com/smourier/archive/2003/06/04/8265.aspx>

Download:

<URL:http://www.codefluent.com/smourier/download/htmlagilitypack.zip>

- or -

SgmlReader 1.4
<URL:http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BC>

If the file read is in XHTML format, you can use the classes contained in
the 'System.Xml' namespace for reading information from the file.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Dec 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.