Sorry. Forgot to post and example of a corrupted file
Importing xml failed. System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 19231, position 15.
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.ReadCurrentNode(XmlDocument doc, XmlReader reader)
at System.Xml.XmlDocument.ReadNode(XmlReader reader)
at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
at A.c7bcc5d48887530943ee9cb5a8f165204.cd7c4a60c9e2d1f71a4766d6c9ea43048_Encrypted$(c7bcc5d48887530943ee9cb5a8f165204 , String )