December 18th, 2004, 02:15 PM
HTMLparser vs Sax
I am creating a complexed html editor much like Dreamweaver. I need a good parser. Dom parsers are inflexible because they do not except malformed documentation. HTML documents are malformed while being created by the user.
I am currently using Pythons HTMLparser to do the job, but I am worried that I cannot modify documents using it. I need to know the difference HTMLparser and Sax parsers. Does sax do everything that HTMLparser does.
December 19th, 2004, 02:48 PM
I haven't used SAX before though if I'm not mistaken It's used for Parsing XML and you want to parse HTML don't you. Anyway I've just noticed there's an article on Devshed, which I haven't read yet about using SAX with Python so maybe that would help.
Take care bell,