Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concurrency and XML?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi everyone,
We are in the process of designing a systemwhere the master data captured by the system should be available in XML. These files will be residing on a central location, accessed by various clients. We would also require that changes to the data should handle issues of concurrency, ie one user should not be allowed to change a master record when it is being changed by someone else. This is fairly simple to do had the data been residing in a database, but for reasons I dont want to get into, the client does not want a database in the picture. So is there any way that
a check for concurrency be implemented on XML files ?
Our team is new to XML and based on the little that we
know, this seems unlikely.
Would appreciate if anyone could help us out here.

Thanks!:)

 
1) You could have a secondary XML file which would simply be a list of recordnumbers and who's got them locked. This would be a pain to keep updated tho.

2) You could also have a datetimemodified value in your xml data and during the attempted save, if the datetimemodified on the server is newer than the datetime, the users would be warned/given an error that they are going to overwrite someone else's changes, depending on the degree of security you want.

If you want more info, I can dig out the DB Design book and see what's they have to say.

Rose
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top