Solved

Obtaining values from inside a HTMLDocument

Posted on 2016-10-04
3
39 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 32

Accepted Solution

by:
Stefan Hoffmann earned 500 total points
Comment Utility
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
Comment Utility
I was slowly coming to that conclusion.  Thanks.
0
 
LVL 44

Author Closing Comment

by:AndyAinscow
Comment Utility
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now