Load operation of XMLDocument Class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I am using an Xml file to store my data. This XML file will be used by
multiple threads for Storing and Retrieving data.

I am using XMLDocument to store and retrieve data from the file.

During Load() operation of the XMLDocument, Is it necessary to check if the
file is being used by some other process or not?

Regards
Hari
 
In generaly not, if file wasn't open for writing - u get you data.
But you need to open context wide, what's the reason to do it -
syncronization or
just first load? just for load u needn't to do check
I am using an Xml file to store my data. This XML file will be used by
multiple threads for Storing and Retrieving data.

I am using XMLDocument to store and retrieve data from the file.

During Load() operation of the XMLDocument, Is it necessary to check if the
file is being used by some other process or not?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top