private void ParseNetwork() { var toParse = sta.GetAttribute("km", ""); // Format EXTENDED_FPL, km ist gut var pos = toParse.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); foreach (var p in pos) { var parts = p.Split(new[] { ':' }, StringSplitOptions.RemoveEmptyEntries); positions.Add(int.Parse(parts[0]), float.Parse(parts[1], CultureInfo.InvariantCulture)); } }