[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Saving XML Docs on web


xml save permission denied
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@h... [mailto:mgushee@h...]
Sent: Monday, August 19, 2002 3:58 PM
To: xml-dev@l...
Subject: Re:  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@h...
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>



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.