Click here to Skip to main content
Click here to Skip to main content
Alternatives (2)
Go to top

Parsing an HTML document by using a recursive function

, 14 Apr 2010
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...

Alternatives

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

28 Sep 2011
ac-2008
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[^]
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

marc9889
Software Developer (Senior) Jacobs Technology
United States United States
No Biography provided

| | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 14 Apr 2010
Article Copyright 2010 by marc9889
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid