protected virtual void FetchXML(System.Xml.XmlDocument XmlDoc) { foreach (System.Xml.XmlNode Node in XmlDoc.DocumentElement.ChildNodes) { IMetaTrack Track = new MetaTrack(Node.SelectSingleNode("name").InnerText, Node.SelectSingleNode("artist").InnerText); //If the track exist, cast it to MetaMusic and add it to the playlist if (this.IsAvailable(ref Track)) { this.Add((MetaMusic)Track); } } }