.Net Asp.Net MVC C# Development

Creating XML files

XElement[] xes = new XElement[10];

var xel = new XElement("Roots",
                            from files in model.files
                            select new XElement("RootFiles",
                            new XElement("File", new XAttribute("path", "~/UploadedFiles/"), new XAttribute("file", files.FileName)
                            )));   //creating the xml file with file name and path data in it

Leave a Reply

Your email address will not be published. Required fields are marked *