Dim xml = <Tests>
<Test id="1">
abc
</Test>
<Test id="2">
abc
</Test>
</Tests>
Console.WriteLine(xml.ToString)
Console.WriteLine()
xml.<Test>.Value = "Hello"
Console.WriteLine(xml.ToString)
Console.WriteLine()
Dim test2 = From test In xml...<Test> _
Where test.@id = 2
test2.Value = "world"
Console.WriteLine(xml.ToString)
Console.ReadLine()
有问题话可以联系我,QQ:36102144 (注明 来至 博客园 )
提问者对于答案的评价:谢谢楼上们的回答,G yc {Son of VB}虽然没有写出添加删除修改的操作, 但我已经找到方法了,非常感谢