using system.Xml.Linq public void RetrieveDataFromXml(){ XElement element = XElement.Load(".xml"); IEnumerable config = element.Elements(); }