Home All Groups Group Topic Archive Search About

HTML in to readable/value accessible object

Author
8 Feb 2006 3:21 AM
Joe
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

Author
8 Feb 2006 6:21 AM
Cor Ligthert [MVP]
Author
8 Feb 2006 8:35 PM
Joe
That doesn't work for me.

I have variable String with HTML text, not a stream so can you give another
practical example?


Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:e3CuYfHLGHA.532@TK2MSFTNGP15.phx.gbl...
> Joe,
>
> Mshtml is the HTML Document Object Model
>
> http://www.vb-tips.com/default.aspx?ID=541adf13-d9c0-435c-893f-56dbb63fdf1c
>
> Cor
>
>
Author
8 Feb 2006 10:12 AM
Herfried K. Wagner [MVP]
"Joe" <johnty***@yahoo.com> schrieb:
> 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.

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/>