jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes How to parse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse?" Watch "How to parse?" New topic
Author

How to parse?

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
<?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*?


Thanks...qingwu<br />When I open my eyes,I see your pretty face.
rahul dighe
Ranch Hand

Joined: Apr 17, 2001
Posts: 44
i cant' really follow everything you are saying.
do you want to find out all the checkid's for a given table number is that what you are trying to do .. ???


<BR>Rahul Dighe
 
jQuery in Action, 2nd edition
 
subject: How to parse?