如何更新XML文件中的某个元素? [英] How can I update a certain element in XML file ?

查看:84
本文介绍了如何更新XML文件中的某个元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个xml文件,其中包含姓名,年龄,位置......我的程序包含datagridview,它读取文件,因此我想选择一个特定项目并在文件中进行编辑。



我该怎么办?



我的尝试:



我搜索了很多但没有任何工作

I have an xml file which contains name , age , location ... and my program contains datagridview which reads the file so I want to select a specific item and edit it in the file.

what should I do ??

What I have tried:

I have searched a lot but nothing is working

推荐答案

下载MS 101 LINQ Samples。它提供了几乎任何您可能想要使用XML的示例。祝你好运。
Download MS 101 LINQ Samples. It gives examples of virtually anything you might want to do with XML. Good luck with that.


这篇关于如何更新XML文件中的某个元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆