try:
parser = etree.XMLParser(remove_blank_text=False)
return cls(etree.parse(StringIO(data), parser), parse_dublincore=parse_dublincore)
except (ExpatError, XMLSyntaxError, XSLTApplyError), e:
try:
parser = etree.XMLParser(remove_blank_text=False)
return cls(etree.parse(StringIO(data), parser), parse_dublincore=parse_dublincore)
except (ExpatError, XMLSyntaxError, XSLTApplyError), e: