怎么带条件检索XML里面一条一条的记录啊?
我的XML文件名为authors.xml ,如下
<?xml version="1.0" encoding="utf-8" ?>
- <Authors_Table>
- <authors>
<作者ID>172-32-1176 </作者ID>
<姓>王 </姓>
<名>静静 </名>
<城市>上海 </城市>
<合同>true </合同>
</authors>
- <authors>
<作者ID>213-46-8915 </作者ID>
<姓>王 </姓>
<名>亮 </名>
<城市>北京 </城市>
<合同>true </合同>
</authors>
- <authors>
<作者ID>238-95-7766 </作者ID>
<姓>乌 </姓>
<名>颖影 </名>
<城市>哈尔滨 </城市>
<合同>true </合同>
</authors>
- <authors>
<作者ID>238-95-7769 </作者ID>
<姓>刘 </姓>
<名>艳春 </名>
<城市>哈尔滨 </城市>
<合同>true </合同>
</authors>
- <authors>
<作者ID>274-80-9391 </作者ID>
<姓>张 </姓>
<名>彩云 </名>
<城市>吉林 </城市>
<合同>true </合同>
</authors>
</Authors_Table>
我怎么检索里面的一条一条的记录啊?我用DATAgridview 来显示,比如输入作者ID,就把该作者的全部信息给显示出来,请高手指点,最好用VB.NET把代码写出来,小弟感激不尽