How can I create a HTMLTable class from and HTML string.

C

chambersdon

I have an XMLReader loaded the HTML from a web page. I want to pull a
Table out of this XMLReader and use it to create an
HTMLControls.HTMLTable object.
How can I do this?

I should be able to do it without parsing the sting and explicitly
creating every row and column. This should work as if the table was
created in the designer using the runat=server attribute.

Don
 
G

Guest

I decided it was unethical but to get you rollin.

xmlreader.ReadToFollowing("table")
dim s as string
s = xmlreader.ReadElementContentAsString()
how you get s into a table is up to you. I think its the table inner html
and you can just set it mynewhtmltable.innerhtml = s you still have to walk
the attributes in node. table might be upper case too and the table node
would not be found. It might not even work at all.

Good Luck
DWS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top