talker2004
asked on
vb.net application parse through html file and find values
ok, I have a vb.net forms application, this application has to read values from an html file on the hard drive.
What I want to do is write a function that can pull all the values I need from the html file into my program, here is an example of two of the values I need to pull out.
The good thing is that each value is embedded in a span tag and has it's own unique id attribute.
I need someone to guide me through parsing the dom to get the element values by id.
Here is two examples:
How would I write my code to pull the values Blue, and Busy from my html file.
<span id="lblColor">Blue</span>
<span id="lblStatus">Busy</span>
thanks in advance.
What I want to do is write a function that can pull all the values I need from the html file into my program, here is an example of two of the values I need to pull out.
The good thing is that each value is embedded in a span tag and has it's own unique id attribute.
I need someone to guide me through parsing the dom to get the element values by id.
Here is two examples:
How would I write my code to pull the values Blue, and Busy from my html file.
<span id="lblColor">Blue</span>
<span id="lblStatus">Busy</span>
thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The above code adds formatted values to a listbox, you might want to remove that piece of code.