flex4 如何遍历xml数据源
[Bindable]privatevarxmlData:XML=<list><item><id>1</id><date>朝阳门</date><pc>345</pc><to...
[Bindable]
private var xmlData:XML =
<list>
<item><id>1</id><date>朝阳门</date><pc>345</pc><total>120</total><storage>350</storage></item>
<item><id>2</id><date>小营</date><pc>330</pc><total>222</total><storage>320</storage></item>
<item><id>3</id><date>昌平</date><pc>340</pc><total>350</total><storage>330</storage></item>
<item><id>4</id><date>南京</date><pc>235</pc><total>240</total><storage>120</storage></item>
</list>;
如何取出total节点的所有值 展开
private var xmlData:XML =
<list>
<item><id>1</id><date>朝阳门</date><pc>345</pc><total>120</total><storage>350</storage></item>
<item><id>2</id><date>小营</date><pc>330</pc><total>222</total><storage>320</storage></item>
<item><id>3</id><date>昌平</date><pc>340</pc><total>350</total><storage>330</storage></item>
<item><id>4</id><date>南京</date><pc>235</pc><total>240</total><storage>120</storage></item>
</list>;
如何取出total节点的所有值 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询