private Collection<PathArc> CreatePathArcs(XmlElement element) { Collection<PathArc> collection = new Collection<PathArc>(); foreach (XmlElement elem in element.SelectNodes("*")) { collection.Add(CreatePathArc(elem)); } return collection; } }