xml的读写

来源:百度知道 编辑:UC知道 时间:2024/05/30 14:06:31
<?xml version="1.0" encoding="utf-8"?>
<Configs>
<UserLogin>
<cusercode>012</cusercode>
<cusername>张三丰</cusername>
<ServerName>djmove</ServerName>
</UserLogin>
</Configs>
以上是我的XML文件.
如何用vb.net 2005中的xml类读写我的
cusercode与cusername节点呢
xmlreader 我知道.但是MSDN写的太抽象.我不需要比较,只要直接写cusercode,与cusername就可以了

你可以去茶MSDN啊!
简单来说就是这个是先用XMLDOC对象把你的xml文件load进来,然后用XMLreader对象来读取节点(NODE),然后再调用Equal方法来比较是否相等。具体算法的设计九是你自己的事情了