--- xmllib.py.orginal 2002-08-14 23:51:00.000000000 +0200 +++ xmllib.py 2003-03-24 11:26:29.000000000 +0100 @@ -163,6 +163,11 @@ self.lineno = self.lineno + string.count(data, '\n') i = n break + if self.__at_start: + if not xmldecl.match(rawdata): + # no declaration -> use default + self.handle_xml('','') + res = interesting.search(rawdata, i) if res: j = res.start(0)