Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XML file with change control

Posted on 2013-11-19
5
Medium Priority
?
213 Views
Last Modified: 2014-04-10
Hi
I have an xml file used across a web app.
currently an administrator manually edits it in notepad
However it must now be editable by users.
I have created web pages to edit file e.g. add, edit, delete items in file susuccessfullyProblem I have is there is no change control.
E.g. user A deletes entry or edits entry. There is no way to know what old data was.
Is there easy way to manage this, is it a case of saving files with different timestamps ?
Thanks
0
Comment
Question by:rwallacej
5 Comments
 
LVL 13

Accepted Solution

by:
jonnidip earned 2000 total points
ID: 39662476
As you pointed, you may think to save a copy of your original file at any user-editing.
This is the most obvious and simplest solution.
You may also think to write your file history to a db table, along with the user that modified it and the date when that edit was done.
As long as you own the code to edit the file (and the file is not manually editable elsewhere), you can do whatever you want.

Regards.
0
 
LVL 16

Expert Comment

by:hjgode
ID: 39663190
I would build a serializable object class around the xml file. That class could generate change history and other stuff for the xml file.
0
 
LVL 16

Expert Comment

by:SriVaddadi
ID: 39664768
You could use FileSystemWatcher class
0
 

Author Comment

by:rwallacej
ID: 39729643
ended up moving to SQL
0
 

Author Closing Comment

by:rwallacej
ID: 39992122
this was ok but did use SQL
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question