desiredforsome
asked on
Add to xml file that is stored in resource.
I have an xml file i saved into a resource that i can access via my.resouces.xmlfile
I want to add to that xml file and save it while the program is running so that it is all "embedded" into the exe.
So below is my xml file i have that is saved in my resouce folder as test.xml. I need to know how to write new xml to it as well as delete xml from it if need be.
I want to add to that xml file and save it while the program is running so that it is all "embedded" into the exe.
So below is my xml file i have that is saved in my resouce folder as test.xml. I need to know how to write new xml to it as well as delete xml from it if need be.
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Student>
<StudentName />
<StudentID />
<Image />
<Location />
<SmartSpeech />
</Student>
<Student>
<StudentName>Corey Gashlin</StudentName>
<StudentID>5993153492</StudentID>
<Image>5993153492.jpg</Image>
<Location>c:\</Location>
<SmartSpeech>YES</SmartSpeech>
</Student>
</NewDataSet>
ASKER
I have already looked at that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello:
It's a poor design. You should the functional design to not relay on compiled resources. Put your data as an standalone xml file, or save it to a DDBB if you need to restrict access to it.
You can't modify a program from within it while running.
It's a poor design. You should the functional design to not relay on compiled resources. Put your data as an standalone xml file, or save it to a DDBB if you need to restrict access to it.
You can't modify a program from within it while running.
http://stackoverflow.com/questions/5898584/saving-changes-in-resource-files-with-linq-to-xml-in-net