Solved

XML file with change control

Posted on 2013-11-19
5
198 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 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
You could use FileSystemWatcher class
0
 

Author Comment

by:rwallacej
Comment Utility
ended up moving to SQL
0
 

Author Closing Comment

by:rwallacej
Comment Utility
this was ok but did use SQL
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now