Re: [Tutor] help with HTMLParseError

2005-02-18 Thread Kent Johnson
Peter Kim wrote: 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/BeautifulS

Re: [Tutor] help with HTMLParseError

2005-02-18 Thread Sean Perry
Peter Kim wrote: I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an exception. How do I handle this? 1. Below is the faulty markup. Notice the missing >. Both Firefox and IE6 correct automatically but HTMLParser is less forgiving. My code has to be able to treat this graceful

[Tutor] help with HTMLParseError

2005-02-17 Thread Peter Kim
I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an exception. How do I handle this? 1. Below is the faulty markup. Notice the missing >. Both Firefox and IE6 correct automatically but HTMLParser is less forgiving. My code has to be able to treat this gracefully because I don