tags:

views:

104

answers:

1

hi,

is it possible to create an IHTMLElementCollection from scratch? i'm having a htmldocument and want to return only certain elements from it as IHTMLElementCollection. for example theres a table, and i want to put all table rows with a certain classname into the collection. any ideas if it's possible?

thanks

A: 

I don't think there is any api to create a new HtmlElementCollection. It is returned from the HtmlDocument object with methods like getElementsByName and GetElementsByTagName. Maybe you can modify one of those returned collections, but I doubt it.

Possible alternatives: Perhaps create your own container class and return it? Or an regular vb6 collection or array?

jm