I am trying to create an XML file containing Folder and files description.
I browse the folder content with a recursive method and I would like to append datas at each call.
Here is the code I use :
DataSet ds = new DataSet("Folders");
ds.Tables.Add(Folder);
ds.Tables.Add(Files);
ds.WriteXml(AppDomain.CurrentDomain.BaseDirectory + "\\FolderList.xml");
Could you please tell me how to proceed to add at each function call datas at the bottom of the xml file ?
Thanks in advance.
1 Answer