还是那个XML问题
结构如下的XML文件,请问怎么读出它里面的值,如我要读出Name的值"M","千米"等
<xml version="1.0" encoding="GB2312">
<root>
<unit name="M" type="长度" value="1" />
<unit name="米" type="长度" value="1" />
<unit name="公尺" type="长度" value="1" />
<unit name="CM" type="长度" value="0.01" />
<unit name="厘米" type="长度" value = "0.01" />
<unit name="公分" type="长度" value = "0.01" />
<unit name="MM" type="长度" value = "0.001" />
<unit name="毫米" type="长度" value = "0.001" />
<unit name="KM" type="长度" value = "1000" />
<unit name="千米" type="长度" value = "1000" />
<unit name="公里" type="长度" value = "1000" />
<unit name="里" type="长度" value = "500" />
</root>