Collection of strings to xml with LINQ2XML
I'm trying to create the XML file with LINQ2XML from List of strings. Each String has the following format - "Path:\To\A\File|SizeofFile|DateOfCreation", for example - "D:\Files\Books\somebook.pdf|2934908|3/31/2014 10:23:23 AM".
I want XML file to contain a tree structure of files and also write size and date of creation as an attribute. Could someone please help me with writing the query?