public void LoadFromXml(XmlNode node) { foreach (XmlNode animationNode in node.ChildNodes) { Animation newAnimation = new Animation(); newAnimation.LoadFromXml(animationNode); Add(newAnimation); } }