File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

How to parse?

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
<?xml version="1.0" encoding="UTF-8"?>
<table no="1">
<check id="1234">
<table no="2">
<check id="123">
<check id="3333">
<table no="3">
<check id="23433">
<check id="45454">
<check id="4543">
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
I agree. Here's the link:
subject: How to parse?
It's not a secret anymore!