How to remove XML node by attribute

后端 未结 2 1465
野趣味
野趣味 2020-12-11 22:05

XML


    
      
      
      

        
2条回答
  •  北海茫月
    2020-12-11 22:25

    Your code works OK, the problem is that you're trying to overwrite the file you've read the data from.

    See this answer C# : the close method of Xml.Load(file)

提交回复
热议问题