如果是简单的比如
<root>
<table>
<row><name>zhang ming</name></row>
<row><name>li lei</name></row>
</table>
</root>
这个可以直接用ds.table[0].rows来取每一行
可是如果是
<root>
<table>
<talbeinfo1>aaa</tableinfo1>
<talbeinfo2>aaa</tableinfo2>
<childtable>
<row><name>zhang ming</name></row>
<row><name>li lei</name></row>
<childtable>
</table>
</root>
怎么办了?
<root>
<table>
<row><name>zhang ming</name></row>
<row><name>li lei</name></row>
</table>
</root>
这个可以直接用ds.table[0].rows来取每一行
可是如果是
<root>
<table>
<talbeinfo1>aaa</tableinfo1>
<talbeinfo2>aaa</tableinfo2>
<childtable>
<row><name>zhang ming</name></row>
<row><name>li lei</name></row>
<childtable>
</table>
</root>
怎么办了?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货