At 03:49 PM 02/09/2001 +1000, J Bijma wrote:
>Since IE5 has a DOM so it can display a document (I think ?)
>Is there any documentation, tutorials, books on how to traverse the HTML DOM
>of Internet Explorer and pull out specific fields?
The *HTML* DOM? So then presumably this is at least well-formed HTML,
right, if not actually XHTML? No plain old <br> or <img> tags lying around?
(I.e., they've been XMLized as <br /> and <img />, respectively.)
>I have a requirement where when a HTML file is being looked at the user
>wants to take the fields out of the tables and store them in an Access
>Database at will.
>I invisage a bit of VB Code that has a list of pre recorded path statements
>and can read the HTML DOM follow the paths and get the desired text in the
Actually, I think a better way to go would be to go in this case would be
to populate the page's table(s) on-the-fly, from whatever source (maybe
even an XML document? What a radical idea!). So it may look to the user as
though she's getting the data out of the tables, but she's actually getting
it from the same source used to fill the tables to begin with.
If you cannot (or don't want to) use some kind of external resource to fill
the tables, as suggested in the preceding paragraph, presumably you still
have *some* control over how the page is made up, no? That is, you're not
talking about a user going to some arbitrary page containing a table and
selecting its contents for import to Access?
In any case, what you're talking about doing should be more or less simple,
depending on how comfortable you are with VB(script) and/or XSLT and/or XPath.
You might check these resources for help with this kind of MS-based processing:
John E. Simpson | "Is it weird in here, or is it just
http://www.flixml.org | me?" -- Steven Wright
XML Q&A: www.xml.com |