HTMLParser tag contents

Grant Griffin g2 at seebelow.org
Sun May 7 06:26:41 EDT 2000


Oleg Broytmann wrote:
> 
> On 5 May 2000, Grant Griffin wrote:
> > Perhaps I misspoke.  I agree that the solution would probably have to occur at
> > the level of SGMLParser, but I guess my question remains: can it do that? if so,
> > how?
> >
> > In looking at the SGMLParser source code, it doesn't appear to have any
> > mechanism to capture the contents of a tag.
> 
>    You cannot "just do it" :) You need to write a class inhertied from
> SGMLParser, define the methods for capturing <BODY> and from this point
> forward capture ALL text and ALL tags until </BODY>.

Thanks for the tip, Oleg.

=g2
-- 
_____________________________________________________________________

Grant R. Griffin                                       g2 at dspguru.com
Publisher of dspGuru                           http://www.dspguru.com
Iowegian International Corporation	      http://www.iowegian.com



More information about the Python-list mailing list