• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

XML file with change control

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
rwallacej
Asked:
rwallacej
1 Solution
 
jonnidipCommented:
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
 
hjgodeCommented:
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
 
SriVaddadiCommented:
You could use FileSystemWatcher class
0
 
rwallacejAuthor Commented:
ended up moving to SQL
0
 
rwallacejAuthor Commented:
this was ok but did use SQL
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now