B
BobRoyAce
I've got a WebBrowser control on a form, called WebBrowser1, and,
through code, I navigate to a web page. Now, on this web page, among
many other things, there is a <table> with several rows, each having
five columns, two of which I care about. I know that I could write
string parsing code to find the <table>, then keep parsing through the
text of WebBrowser1.Document to find each "cell" that I care about,
and pull the text contained therein. However...
If this was XML, I could nicely grab the items I care about with some
yet-to-be-determined code. I am wondering if here is also a way to do
this with HTML. What would be a home-run would be if I could at least
do something like this:
Pseudocode...
TheTable = GetTheTable
For Each Row in TheTable.GetRows
sCol2Value = Row.Column(2)
sCol5Value = Row.Column(5)
Next
If this isn't easy to do in code, are there any "components" out there
to facilitate something like this?
through code, I navigate to a web page. Now, on this web page, among
many other things, there is a <table> with several rows, each having
five columns, two of which I care about. I know that I could write
string parsing code to find the <table>, then keep parsing through the
text of WebBrowser1.Document to find each "cell" that I care about,
and pull the text contained therein. However...
If this was XML, I could nicely grab the items I care about with some
yet-to-be-determined code. I am wondering if here is also a way to do
this with HTML. What would be a home-run would be if I could at least
do something like this:
Pseudocode...
TheTable = GetTheTable
For Each Row in TheTable.GetRows
sCol2Value = Row.Column(2)
sCol5Value = Row.Column(5)
Next
If this isn't easy to do in code, are there any "components" out there
to facilitate something like this?