Solved

XML file with change control

Posted on 2013-11-19
5
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 13

Accepted Solution

by:
jonnidip earned 500 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 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