Raise an exception when parsing an XML file fails