<exam>
<question type="multichoice">
<name>
<text>Demo Imported Question</text>
</name>
<questiontext format="html">
<text>What is SEO?</text>
</questiontext>
<answer fraction="0">
<text>Son of English Organization</text>
<feedback><text>WRONG</text></feedback>
</answer>
<answer fraction="100">
<text>Search Engine Optimization</text>
<feedback><text>Right on!</text></feedback>
</answer>
<answer fraction="0">
<text>Silver of England Office</text>
<feedback><text>Ooops!</text></feedback>
</answer>
<questiontext format="html">
<text>How many stars are there on US flag ?</text>
</questiontext>
<answer fraction="0">
<text>46</text>
<feedback><text>WRONG</text></feedback>
</answer>
<answer fraction="100">
<text>52</text>
<feedback><text>Right on!</text></feedback>
</answer>
<answer fraction="0">
<text>54</text>
<feedback><text>Ooops!</text></feedback>
</answer>
</question>
</exam>
The above is a dummy test xml and I like to read in by Java code snippet and simply ouput as
Question : what is seo?
answer: Son of English Organizatio
answer: Search Engine Optimization
answer: Silvet of england Office
...likewise for the next question
Does anyone has a best way to do this ? Thanks so much