I have a function say, WritetoXML in a Class X. I call this function in all other classes in my project.(I have only one project). I have created a new windows form in the same project. I am trying to update something in XML by calling the same function WritetoXML, but it is not getting updated. I have debug it. The function call throws no error but it is not updating the XML.Note: When I call this function WritetoXML from any other class in my project, it is working fine.The code is in C# using MS Visual Studio 2010.