lxml question

Uwe Schmitt rocksportrocker at googlemail.com
Fri Sep 26 17:19:04 CEST 2008


Hi,

I have to parse some text which pretends to be XML. lxml does not want
to parse it, because it lacks a root element.
I think that this situation is not unusual, so: is there a way to
force lxml to parse it ?

My work around is wrapping the text with "<root>...</root>" before
feeding lxmls parser.

Greetings, Uwe



More information about the Python-list mailing list