where is leak in my code?
问题 Here is my code which opens an XML file (old.xml), filter invalid characters and write to another XML file (abc.xml). Finally I will load the XML (abc.xml) again. When executing the followling line, there is exception says the xml file is used by another process, xDoc.Load("C:\\abc.xml"); Does anyone have any ideas what is wrong? Any leaks in my code and why (I am using "using" keyword all the time, confused to see leaks...)? Here is my whole code, I am using C# + VSTS 2008 under Windows