OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Saving XML Docs on web

[ Lists Home | Date Index | Thread Index ]

All reference to methods were indeed methods of the MSXML com object
(sorry).

As far as 2 people, have the same XML doc open:  there would not be any open
handles to the XML source, rather the script would read the XML source into
memory, process the XML document, and then later save the changes.  If
clientB requests the XML doc at a similar time as clientA, makes changes
(maybe via a web interface, updates a phone number, etc...) and saves
changes, he stands the chance of overwriting clientA's information.

This is all server side automated ASP code, client connects via a VB object
on local machine.  Client doesn't know he/she is connecting, but the VB
software looks for updates that the client may need, performs the updates,
and then updates the XML document on the server with the status "UPDATE
PERFORMED".

Thanks for the help.
Karl

-----Original Message-----
From: mgushee@havenrock.com [mailto:mgushee@havenrock.com]
Sent: Monday, August 19, 2002 3:58 PM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Saving XML Docs on web


On Mon, Aug 19, 2002 at 03:29:49PM -0700, Karl Stubsjoen wrote:
>
> I am using an XML doc / server side to keep track of client app
> installations.  The client APP will update the server (via ASP code) at
> different times.
> Most of this is working perfect, but I have 2 concerns:
>
> 1)  if 2 people have the same XML doc open at the same time (or before any
> new saves), if clientA make changes then saves, and clienB does the
same...
> what will prevent clientB from overwriting clientA's changes?

This question really has nothing to do with XML. If you don't have some
sort of document repository or version control system designed to
resolve such conflicts, then you need to write your ASP code to do so
... or take your chances. There's nothing XML-specific (or ASP- specific,
as far as I know) about enabling concurrent write access--except that
most programmer's version control products (CVS, ClearCase, etc.) are
not very good at resolving conflicts in XML documents.

By the way, what exactly do you mean by the statement that '2 people
have the same XML doc open at the same time'? If you mean that
literally--i.e., something like: a user opens a session over HTTP and,
when they request an XML document, the server opens a local file handle
and keeps it open for the life of the session--I think you're asking for
trouble. Or do you mean it in more of a metaphorical sense?

> 2)  when you use the Save method of the xml document, is it necessary
> to first delete the existing XML document that is out there?  I keep
> getting permission denied (Write access has been granted for the
> "everyone" account).

Umm ... last time I checked, XML documents didn't have methods. Are you
talking about a Save method on the MSXML COM object, perchance?

--
Matt Gushee
Englewood, Colorado, USA
mgushee@havenrock.com
http://www.havenrock.com/

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS