如何读取我想要的XML节点
<?xml version= "1.0 " encoding= "utf-8 " ?>
<datamove>
<!--原始数据源-->
<DataSource key = "DataString1 " server = ". " database= "db1 " username= "sa " password= "sa "> </DataSource>
<!--目标数据源-->
<DataSource key = "DataString2 " server = ". " database= "db2 " username= "sa " password= "sa "> </DataSource>
<!--table标记: source是源数据表名,target是目标数据表名-->
<!--column标记: source是源数据表列名,target是目标数据表列名-->
<table source= "Admin_Level " target= "Admin_Level " delSourceData= "True " overcastTargetData= "True ">
<column source= "ID " target= "ID "> </column>
<column source= "Symbol " target= "Symbol "> </column>
<column source= "Name " target= "Name "> </column>
<column source= "isDel " target= "isDel "> </column>
</table>
<table source= "bm_Dept " target= "bm_Dept " delSourceData= "True " overcastTargetData= "True ">
<column source= "ID " target= "ID "> </column>
<column source= "Symbol " target= "Symbol "> </column>
<column source= "Name " target= "Name "> </column>
<column source= "type " target= "type "> </column>
<column source= "isDel " target= "isDel "> </column>
</table>
</datamove>
我想解析XML来得到我想要的值:DataSource 的属性table 的属性值及它的字节点值;
谢谢,在线等,急!
[解决办法]
我这里有个程序,How to Send you