I have a simple class XmlFileHelper as follows:
public class XmlFileHelper { #region Private Members private XmlDocument xmlDoc = new XmlDocument();
You can do this
using (Stream s = File.OpenRead(xmlFilePath)) { xmlDoc.Load(s); }
instead of
xmlDoc.Load(xmlFilePath);