首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

怎么读取小弟我想要的XML节点

2012-02-20 
如何读取我想要的XML节点?xmlversion 1.0 encoding utf-8 ?datamove!--原始数据源--DataSour

如何读取我想要的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

热点排行