Hello,
I am finding trouble while using XmlDocument class to parse my xml documents
reside in file system.
The problem is, I have a function that loads the XmlDocument and the
function is called many times during the execution context; the first call
goes ok but the second call throws the exception that 'File is being used by
another process'.
I am writing the function this way.
public void ReadXml(string path)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(path);
XmlNode node = xmlDocument.SelectSingleNode("/Employee[sal > 30]");
blah blah blah
}
any help on this would be sincerely appreciated.
Thanks in advance,
Fahad Ashfaque