internal static double ParseDouble(string name, string s) { try { return XmlConvert.ToDouble(s); } catch (FormatException) { throw new FormatException(FormatMessage(name, s)); } }