According to MSDN the .NET XmlDocument.Load(String) method requires write access to the underlying file. The exceptions list says
UnauthorizedAccessException : filename specified a file that is read-only....
My question boils down to
Is it even true that read-write access is needed
XmlDocument creates XmlReader, which, AFAIK, doesn't throws such exceptions.Does it mean that the file is kept open during the lifetime of the object
Does it mean that modifications to the the XmlDocument and its sub-nodes can result in live modifications to the file on disk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With