Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 7th, 2003, 03:46 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Simultaneous xml file access

Hi,

If I have an XML file of 2 tags. I load it into my app and change the content of tag 1. Now I want to save it back to the XML file with my changes. But I don't want to overwrite the changes that another app makes to tag 2 at the same time and saved back to the file before me. How can I accomplish this?

Thanks,
James


 
Old August 12th, 2003, 06:46 PM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rushman
Default

Hi!

Simutalneous access eh! I see a few ways to do it: I) You'll have to grant priority access levels to your apps.(tricky, but feasible) II) You lock the document when one of your apps picks it up. You unlock it when you put it back and then the second app can take it. (not much trouble if you're willing to include a special tag in your XML file) III) The 1st app creates a new document which reflects the changes made to tag 1. The second app loads this document and append its changes to tag 2. (Easiest way I think)

Good luck!

Dijkstra's law on Programming and Inertia:

If you don't know what your program is supposed to do, don't try to write it.
 
Old September 1st, 2003, 03:30 AM
Registered User
 
Join Date: Aug 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Can U really change the name of any Node. I guess the NodeName is a readonly property.


Quote:
quote:Originally posted by jim77002
 Hi,

If I have an XML file of 2 tags. I load it into my app and change the content of tag 1. Now I want to save it back to the XML file with my changes. But I don't want to overwrite the changes that another app makes to tag 2 at the same time and saved back to the file before me. How can I accomplish this?

Thanks,
James


Thanks and regards,

Raj Babar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Simultaneous file write jmjlm VBScript 4 May 25th, 2007 04:41 PM
ThePhile - Access Error to XML file cewekoolz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 16th, 2005 02:16 AM
Simultaneous multiple file download balamuralivenkat Classic ASP Basics 6 December 17th, 2003 11:37 PM
XML file access atingoldy Beginning VB 6 1 December 10th, 2003 09:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.