-2
所以,我有一個結構的XML文件:用XML文件工作
<?xml version="1.0" encoding="utf-8"?>
<Students>
<Student Id="0">
<FirstName>Robert</FirstName>
<Last>Jarman</Last>
<Age>21</Age>
<Gender>0</Gender>
</Student>
<Student Id="1">
<FirstName>Leona</FirstName>
<Last>Menders</Last>
<Age>20</Age>
<Gender>1</Gender>
</Student>
<Students>
什麼是閱讀(一種或幾種元素),寫,刪除和更新記錄在文檔中的最佳方法是什麼?
在當前格式的問題是過於寬泛。每個問題指定一個問題。那麼你想要確切地知道什麼。如果你不能決定你總是可以在谷歌中寫入如何在C#中解析xml文檔! – mybirthname
我想使用節點,如果不存在,可以創建一個具有相同結構的新文件。 –
Roman