查询XML节点,获取另一个节点的值
<?xml version="1.0" encoding="GB2312" ?>
- <allproducts version="1.0">
- <products>
<product name="prodId" value="1" />
<product name="prodContent" value="A" />
<product name="prodPrice" value="123" />
<product name="prodIsptype" value="AAA" />
<product name="prodDelaytimes" value="AAA" />
<product name="prodProvinceid" value="111" />
<product name="prodType" value="AAA" />
</products>
- <products>
<product name="prodId" value="2" />
<product name="prodContent" value="B" />
<product name="prodPrice" value="456" />
<product name="prodIsptype" value="BBB" />
<product name="prodDelaytimes" value="BBB" />
<product name="prodProvinceid" value="222" />
<product name="prodType" value="BBB" />
</products>
- <products>
<product name="prodId" value="3" />
<product name="prodContent" value="C" />
<product name="prodPrice" value="789" />
<product name="prodIsptype" value="CCC" />
<product name="prodDelaytimes" value="CCC" />
<product name="prodProvinceid" value="333" />
<product name="prodType" value="CCC" />
</products>
</allproducts>