converting an html table to a tree

Alex Martelli alex at magenta.com
Thu Aug 24 12:08:44 EDT 2000


"Ian Lipsky" <NOSPAM at pacificnet.net> wrote in message
news:Rbbp5.1370$3Q6.66906 at newsread2.prod.itd.earthlink.net...
    [snip]
>  i dont need to worry about the contents of each table cell. So unless i
am
> overlooking something, i'll really only need to worry about the TABLE, TR
> and TD tags.

A <TR> could contain <TH>.  What would you want to do with those?

> I think i have to do this as though there could be an
> unspecified number of tables, which shouldnt be much more complicated then
> doing it if it were a specified number.

Nope, just another level of nesting, I think.


Alex






More information about the Python-list mailing list