?
Solved

Obtaining values from inside a HTMLDocument

Posted on 2016-10-04
3
Medium Priority
?
72 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

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 44

Author Comment

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

Author Closing Comment

by:AndyAinscow
ID: 41829954
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

765 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