Thursday, January 10, 2008

HTML Parsing using .NET Framework in VB.NET

HTML Parsing using .NET Framework (CodeProject)
In this article, i will be showing how to parse and modify a peace of HTML code using a nice and helpfull .NET assembly.
Download ParseHTML.zip - 1.2 KB
The assembly is located on the folder below:


Dim htmlDocument As IHTMLDocument2 = New HTMLDocumentClass()
htmlDocument.write(htmlToParse)
htmlDocument.close()
'::......... With this we retrieve all of the HTML elements collection existing on out HTML block
Dim allElements As IHTMLElementCollection = htmlDocument.body.all
...

No comments: