The text of this article is not in this database — only its details are. Read it on the old site: Create XML File Programmatically in Windows Store Apps Using C#
8 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Mike WangPosted Apr 23, 2013, 5:20 PM
Well Done! One question: how to append more records once the xml file created? I can not figure it out. Please help. Thanks.
saikiran kodumuruPosted Feb 4, 2013, 5:42 AM
Nice article gaurav, I am new to windows store apps, can you provide me source code / reference links for create, read and write an excel in windows store apps using C#.
Gaurav GuptaPosted Nov 26, 2012, 10:03 PM
Great Effort Nate, Thanks...
Nate HeditedPosted Nov 26, 2012, 5:32 PMEdited Nov 26, 2012, 5:33 PM
This is what I did to make this work for me, I am trying to create a Windows Store App - Windows.Storage.StorageFolder sf = await ApplicationData.Current.LocalFolder.CreateFolderAsync("EMP", CreationCollisionOption.OpenIfExists); StorageFile st = await sf.CreateFileAsync("Employee.xml", CreationCollisionOption.OpenIfExists);await dom.SaveToFileAsync(st);
ashok kallaguntaPosted Sep 11, 2012, 2:20 AM
hi i am alos getting same error "UnauthorizedAccesException - HRESULT: 0x80070005 (E_ACCESSDENIED)" i gave full access to that folder even though i am getting issue can u pls help me out
Gaurav GuptaPosted Sep 4, 2012, 4:39 AM
probably your folder properties is set to be readonly or you have not rights to read/write this folder. change the settings of the folder. Hope this will help you... To see the bin file you have to ensure that show all files are enabled... thanks.
JohanneseditedPosted Aug 1, 2012, 9:16 AMEdited Aug 1, 2012, 9:39 AM
Thanks for this great Tutorial. But I have a question: When I come to the point where the programm saves the XML-File, I get this Error: "UnauthorizedAccesException - HRESULT: 0x80070005 (E_ACCESSDENIED)" Why don't I have the rights to save this XML-File? And also I don't have a folder "Bin" in my solution explorer..I hope you can help me.Sorry for my bad englich ;-)Greeting, Creeps EDIT: I get the error when the programm wants to create the folder "EMP"!
Varesh TuliPosted Jul 12, 2012, 4:49 AM
This article is very useful for freshers. Thanks for the post.