Hi kean.. i was also having the same problem that you were facing. i had also posted questions on CodeProject earlier but had no success. Finally after doing a lot of "google" and books,what i found is that :
1. You cannot edit an Embedded Resource.
2. The XML file should not be kept as a resource as said by dmageiras. So what you can do is either
a)store it in some disk and access
or do it in my way :
b)make the Build Action of your XML to Content and then change the Copy
to Output Directory option to Copy Always.
with this the XML file will automatically go to the debug folder and
accessing XML will be much simpler:
XmlDocument xmlDoc=new XmlDocument();
It is also recommended that if you want to edit any resource, it is better to keep it as Content File. After reading a number of books, the authors have warned that never keep your resource as Embedded Resource.
You can also have a look at this MSDN link :
Another link which will be very helpful! :
I hope now you know what the correct way is!
make a simple project and try to do it. after you run your project for first time, you can check in the debug folder of your project where you can find your XML. make some changes through code on that XML and it gets reflected in that XML itself.
Good Luck! :)