I have a List<> which I have managed to write into file. Now I am trying to read the same file and write it back to List<>. Is there a
List<>
You can try this (using System.Xml.Linq)
XDocument xmlDoc = XDocument.Load("yourXMLFile.xml"); var list = xmlDoc.Root.Elements("id") .Select(element => element.Value) .ToList();