> Also, for XML documents, they were probably thinking that the > documents will be machine-generated most of the time. As far as I can > tell, they were right in that.
If anybody has to deal with human-generated XML/HTML in Python it may be better to use something like http://www.crummy.com/software/BeautifulSoup/ Bad XML markup is part of our life and there are great tools for this use-case too. -- http://mail.python.org/mailman/listinfo/python-list