Relative Content

Tag Archive for c#linq

C# XML node info update

I’m encountering an issue with using LINQ to manipulate XML. To demonstrate, I created a simple test with two XML files. The problem arises after I add a node; altering its information doesn’t change the added node. However, if I add this node along with its parent node, it does change. I’m puzzled because I didn’t create a new instance at all. Any assistance would be appreciated.
test2.xml