Dim f As New FolderPicker f.SuggestedStartLocation = PickerLocationId.DocumentsLibrary f.ViewMode = PickerViewMode.Thumbnail f.FileTypeFilter.Add("*") Dim folder As StorageFolder = Await f.PickSingleFolderAsync Dim rootEle As XmlElement Dim file As StorageFile = Nothing file = Await folder.CreateFileAsync("demoXML.xml", CreationCollisionOption.ReplaceExisting) rootEle = doc.CreateElement("files_tbl") doc.AppendChild(rootEle) Dim ele As XmlElement ele = doc.CreateElement("files") rootEle.AppendChild(ele) Dim otherEle As XmlElement otherEle = doc.CreateElement("field-1") otherEle.InnerText = "data-1" ele.AppendChild(otherEle) otherEle = doc.CreateElement("field-2") otherEle.InnerText = "data-2" ele.AppendChild(otherEle) Await doc.SaveToFileAsync(file)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)