Groups | Blog | Home
all groups > vb.net > february 2006 >

vb.net : HTML in to readable/value accessible object


Joe
2/7/2006 10:21:43 PM
Can someone show me how I can correctly put the HTML code of a webpage into
an object where I can access the various values of the tages in VB.net?

I did it in VB6 with HTMLDocument, but its seems to not work for me in
VB.NET.

Thanks in advance

Cor Ligthert [MVP]
2/8/2006 12:00:00 AM
Joe,

Mshtml is the HTML Document Object Model

http://www.vb-tips.com/default.aspx?ID=541adf13-d9c0-435c-893f-56dbb63fdf1c

Cor

Herfried K. Wagner [MVP]
2/8/2006 12:00:00 AM
"Joe" <johntyung@yahoo.com> schrieb:
[quoted text, click to view]

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://classicvb.org/petition/>
AddThis Social Bookmark Button