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

这样的XML文件如何解析

2012-03-26 
这样的XML文件怎么解析啊?xml version1.0 encodingUTF-8?StataBdata process10% rsenumber

这样的XML文件怎么解析啊
<?xml version="1.0" encoding="UTF-8"?>
<Stata>
<Bdata process="10%" rsenumber="1590" ptime="29/7/2008 09:45">

<rs rsname="B5ZB82_1" rsstate="no" rsinfo="标V-北-B82">
<rse rsename="B5ZB82_1" rsestate="no" rseinfo="标V-B82-右幅-桩"/>
<rse rsename="B5DB82_1" rsestate="no" rseinfo="标V-B82-右幅-墩柱"/>
<rse rsename="B5HB82_1" rsestate="no" rseinfo="标V-B82-右幅-左幅-连接部"/>
<rse rsename="A5ZB82_1" rsestate="no" rseinfo="标V-B82-左幅-桩"/>
<rse rsename="A5DB82_1" rsestate="no" rseinfo="标V-B82-左幅-墩柱"/>
</rs>

<rs rsname="B5ZB81_1" rsstate="no" rsinfo="标V-北-B81">
<rse rsename="B5ZB81_1" rsestate="no" rseinfo="标V-B81-右幅-桩"/>
<rse rsename="B5DB81_1" rsestate="no" rseinfo="标V-B81-右幅-墩柱"/>
<rse rsename="B5HB81_1" rsestate="no" rseinfo="标V-B81-右幅-左幅-连接部"/>
<rse rsename="A5ZB81_1" rsestate="no" rseinfo="标V-B81-左幅-桩"/>
<rse rsename="A5DB81_1" rsestate="no" rseinfo="标V-B81-左幅-墩柱"/>
</rs>

<rs rsname="B5ZB80_1" rsstate="no" rsinfo="标V-北-B80">
<rse rsename="B5ZB80_1" rsestate="no" rseinfo="标V-B80-右幅-桩"/>
<rse rsename="B5DB80_1" rsestate="no" rseinfo="标V-B80-右幅-墩柱"/>
<rse rsename="B5HB80_1" rsestate="no" rseinfo="标V-B80-右幅-左幅-连接部"/>
<rse rsename="A5ZB80_1" rsestate="no" rseinfo="标V-B80-左幅-桩"/>
<rse rsename="A5DB80_1" rsestate="no" rseinfo="标V-B80-左幅-墩柱"/>
</rs>

<rs rsname="B5ZB79_1" rsstate="no" rsinfo="标V-北-B79">
<rse rsename="B5ZB79_1" rsestate="no" rseinfo="标V-B79-右幅-桩"/>
<rse rsename="B5DB79_1" rsestate="no" rseinfo="标V-B79-右幅-墩柱"/>
<rse rsename="B5HB79_1" rsestate="no" rseinfo="标V-B79-右幅-左幅-连接部"/>
<rse rsename="B5HB77_1" rsestate="no" rseinfo="标V-B79-右幅-左幅-连接部"/>
<rse rsename="A5ZB79_1" rsestate="no" rseinfo="标V-B79-左幅-桩"/>
<rse rsename="A5DB79_1" rsestate="no" rseinfo="标V-B79-左幅-墩柱"/>
</rs>

</Bdata>
</Stata>
我想取得节点里的属性啊

[解决办法]
参考这里:http://blog.csdn.net/cds27/archive/2008/04/18/2305166.aspx
[解决办法]
用getpro()函数 具体参见http://linux.chinaunix.net/techdoc/develop/2008/01/12/976459.shtml

热点排行