just,I tried to remove the node from the xml file what i have.But it is showing exception. the below code what i tried.
LoadXmlFile.Element("NewElementName").Remove();
LoadXmlFile.Save(@"D:\yyy_RemoveElement.xml");
It is showing exception like “Exception has been thrown by the target of an invocation.”
You can try like this.it will help you well.