public static IList <RegistrationData> ToRegistrationData(string xmlVal) { var doc = new System.Xml.XmlDocument(); try { doc.LoadXml(xmlVal); var result = RegistrationData.ConvertToRegistrationDataList(doc); return(result); } catch (Exception ex) { Debug.Write($"Error: Could not convert Xml String to Course Data.\r\n {ex.Message}", "ScormApi.Helper.Converter"); throw; } }