I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an exception. How do I handle this?
My understanding is that HTMLParser is not very forgiving of badly formed HTML. You might want to look at alternatives. Here are a few:
http://www.crummy.com/software/BeautifulSoup/ and see the links at the bottom of the page
http://effbot.org/zone/element-tidylib.htm
Kent
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor