Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Obtaining values from inside a HTMLDocument

Posted on 2016-10-04
3
Medium Priority
?
85 Views
Last Modified: 2016-10-05
I have a HTMLDocument object.  I would like to obtain the contents of the fifth column on a row inside a table where the third column of the row has some text "abc/xyz"

What is the best way to iterate through all the tables in the document and then for each table iterate through the rows and for each row to iterate through the columns.
I think I can get all the tables by the GetElementsByTagName but I don't see any easy way to iterate through the rows in each table that function returns or the columns in each row.
0
Comment
Question by:AndyAinscow
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
ste5an earned 2000 total points
ID: 41829463
There is no easy way. You need to iterate them, especially all columns, to see whether colspan/rowspan is active in some cells.
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 41829728
I was slowly coming to that conclusion.  Thanks.
0
 
LVL 45

Author Closing Comment

by:AndyAinscow
ID: 41829954
Thanks
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question