I am getting the following error when i am trying to load the xml file :
"The process cannot access the file because it is being used by another process."
The xml file is gettign created at a earlier stage in the same script, through command line output redirection.
I understand from the error description that, the xml file session has not been closed somewhere earlier. But since i am creating this file via command line, i am not sure whether i should explicitly close the file or dispose the session.