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?
Collection of strings to xml with LINQ2XML
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

ramya bharathRank #3,780 · 391 reputationPosted May 6, 2015, 10:12 AM EDT