elementtree

elsa kerensaelise at hotmail.com
Mon Aug 24 03:04:57 EDT 2009


I have a question about elementtree:

I know how to turn HTML into an ElementTree object, but I don't know
how to then view the structure of this object. Is there a method or
module that you can give an ElementTree object to, and it returns some
kind of graphical or printed representation of the tree? Otherwise, if
you can't see you're tree's structure, how do you know what is a
sensible way of iterating over the tree to access the info you need?

Thanks!



More information about the Python-list mailing list