<?xml version="1.0" encoding="UTF-8"?>
<hpcp>
<table no="1">
<check id="1234">
<persons>4</persons>
</check>
</table>
<table no="2">
<check id="123">
<persons>4</persons>
</check>
<check id="3333">
<persons>3</persons>
</check>
</table>
<table no="3">
<check id="23433">
<persons>4</persons>
</check>
<check id="45454">
<persons>4</persons>
</check>
<check id="4543">
<persons>4</persons>
</check>
</table>
</hpcp>
the snippet as following:
I parses it,I want every tableno map serval checkid,but I got every tableno has the same checkid(all checkid of xml
doc)
How can I compose *for loop*?