Re: Parsing malformed XHTML

Brian Quinlan <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
Lars Kellogg-Stedman wrote:

> I need to parse this document into a DOM, make some changes, and then
> spit back out the modified file as (X?)HTML (ideally well-formed).  Am
> I going to be able to do this with PyXML?  If not, I'd love to hear
> your suggestions for the appropriate tools.
> 
> Thanks!
> 
> -- Lars
> 

You might want to look into Beautiful Soup. Another approach is to pass 
the document through HTML Tidy and then process the output.

Cheers,
Brian
_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.