Click here to Skip to main content
11,487,406 members (72,549 online)
Click here to Skip to main content

Parsing an HTML document by using a recursive function

, 28 Sep 2011 CPOL 3.2K
Maybe this would have saved you some efforts: http://developer.mindtouch.com/SgmlReader[^]. I have already developed a project (Delivery Predictor) with this reader: http://achristov.info/Projects.aspx[^]

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

14 Apr 2010
marc9889
2 alternatives  
This is an example of one way to parse an HTML document by using a recursive function. In this example, an html document is loaded from a text file, but the code also demonstrates (in remarks) using a web page as a source file.When the recursive function is called, a conditional statement...
19 Sep 2011
marc9889
In response to the request to use a website (instead of a file), the pertinent code is shown below. Note that you will need to replace "www.somewebsite.com" with the website page that you want to capture the source code (HTML, for example) from.Dim webclient As System.Net.WebClient = New...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

ac-2008

Bulgaria Bulgaria
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.150520.1 | Last Updated 28 Sep 2011
Article Copyright 2011 by ac-2008
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid