A Unique XML Parsing Problem

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Oct 23 22:46:54 EDT 2010


In message
<0af3e9b1-8d3d-4efd-99d6-ca033204e3e2 at n26g2000yqh.googlegroups.com>, Devon 
wrote:

> I have heard about Beautiful Soup but never used it.

BeautifulSoup is intended for HTML parsing. It is, or was, particularly good 
at dealing with badly-formed HTML, as commonly found on lots of websites. I 
think more recently some libraries changed out from under it, so I’m not 
sure if this is still true.

XML is (officially) much more anal in its compliance, so you shouldn’t need 
to bend over backwards to parse it.



More information about the Python-list mailing list