hi folks,
i want to develop a Quiz game in j2me. I ve one xml file spinsports.xml where
there are 8 categories tag. In each category there are 100 Questions tag with 4 answers tag each .
- <CATEGORY ID="1">
<QUESTION ID="1" Q="How often is the Ryder Cup Match held?" A1="EVERY TWO YEARS" A2="EVERY YEAR" A3="EVERY FOUR YEARS" A4="EVERY THREE YEARS" CORRECT="A1" TYPE="1" />
<QUESTION ID="2" Q="Who is the nephew of the legendary Sam Snead?" A1="TIGER WOODS" A2="J.C. SNEAD" A3="MILLER BARBER" A4="JOHN BLAND" CORRECT="A2" TYPE="1" /> ...
</CATEGORY>
-<CATEGORY ID="2"><....>
Im using Netbeans 5.0.In my game i want to parse this xml file and for every click of "play button" in
a question from selected category should be displayed.
Plz suggest me, waht r all the basic steps i have to follow since im a beginner in xml parsing.also i have gone thru many eg with kxml parsing.Plz give me all kind of sample codings.
thanks in advance
yafy

Reply With Quote


