日期:2014-05-17 浏览次数:20819 次
<out-file> <row> <field name="goods-id">110204</field> <field name="amount">3</field> <field name="total-sum">0</field> </row> <row> <field name="goods-id">110242</field> <field name="amount">10</field> <field name="total-sum">0</field> </row> <row> <field name="goods-id">110271</field> <field name="amount">10</field> <field name="total-sum">0</field> </row> <row> <field name="goods-id">208005</field> <field name="amount">39</field> <field name="total-sum">0</field> </row> </out-file>
<out-file> <row> <goods-id>110204</field> <amount>3</field> <total-sum>0</field> </row> ...... </out-file>
------解决方案--------------------
XML创建的格式不太好啊,取数据很麻烦,最好用下面格式,代码好写
<row>
<goods-id>110204</goods-id>
<amount>3</amount>
<total-sum>0</total-sum>
</row>