Results 1 to 2 of 2

Thread: DOM Document Sharing

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2012
    Posts
    37

    DOM Document Sharing

    My code is currently modifying an XML file using MSXML2. It loads an XML file using the Load commend [ Load(C:\xxxx\yyy\File.xml ]
    Now, I want to write additional functionality to my application. I need to update nodes in the xml file with the file opened in an outside application.

    I have written code to "Load" the file , update it with no errors from MY app, but, when the other application quits, reloads, the data is not updated.

    Is what I want possible?

    Thanks

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    Re: DOM Document Sharing

    Updating a file while it's opened by another application has no use.
    If your application modifies the file then the other application will not magically re-read the file.
    Thus when the other applications quits it will rewrite the file with it's own settings, because sequential files are always complete rewritten. It's not a database in which you update certain records.

    So don't modify the file while it's in use by another application.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width