From: Giovanni Gherdovich Date: Fri, 22 Oct 2010 10:35:08 +0000 (+0200) Subject: I forgot to remove the >printprint 1: # many elems don't have atts... pttrnAtt = ' *?.+.?=".*?"' - print "TMP", tmp attList = re.compile(pttrnAtt, re.DOTALL).findall(tmp[1]) for att in attList: tmp = att.split('=') - print "TMP2", tmp attName = tmp[0] attValue = tmp[1][1:-1] AttListHtml += (attPattern % (attName, attValue))