Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<?xml version="1.0" encoding="UTF-8"?>
<category>
<aaa>
<bbb>
<ccc>
<ddd>
<eee>
<abc>name</abc>
<cde>student</cde>
<fff>
<fgh>phone</fgh>
<hij>address</hij>
</fff>
</eee>


SO i Have Xml as shown above so I have Displayed In the following format

Lable Textbox
abc name
cde student

so i want to save the changes made in the textbox.i am reading and writing is the same
xml file which i am reading.so i have save button on its click event i have save the new changes in the xml document.

Document size is up to 10 mb a large file. xml tag name will not be changed but we have to change a small section in xml file that means only for selected node child elements we have change the xml content and rest of the xml will remain the same.


So i tried but i am getting the solution please give a solution thanks In advance.
Posted

1 solution

For files that large, it's SAFER to write the new file using a temporary file name, then delete the old file and rename the temp file to the previous file name.

You never said what the problem was, so that's about the best answer you're going to get until you expound on the problem.
 
Share this answer
 
Comments
manoj1412012 25-Nov-15 0:52am    
Thanks Dave Yes we can use the temp file to save the doc and rename it later

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900