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
Solved

Obtaining values from inside a HTMLDocument

Posted on 2016-10-04
3
53 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 33

Accepted Solution

by:
ste5an earned 500 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 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