On Fri, Jan 14, 2011 at 4:42 PM, Terry Carroll <carr...@tjc.com> wrote:

> <snip>
>
> On Fri, 14 Jan 2011, Karim wrote:
>
>  from xml.etree.ElementTree import ElementTree
>>
>
> I don't think straight XML parsing will work on this, as it's not valid
> XML; it just looks XML-like enough to cause confusion.
>
>
It's worth trying out - most (good) parsers "do the right thing" even when
they don't have strictly valid code. I don't know if xml.etree is one, but
I'm fairly sure both lxml and BeautifulSoup would probably parse it
correctly. Only one way to find out ;)

-Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to