我正在制作一个包含 xml 文件内容的问答游戏。我用java语言
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<LQuiz>
<Topic id="1" name="About Sun" time="900">
<question
name="1. The radiations emitted by the sun and responsible for the cause of skin cancer are...">
<answer correctness="true">ultra-violet</answer>
<answer correctness="false">infra-red</answer>
<answer correctness="false">X-rays</answer>
<answer correctness="false">micro waves</answer>
<advice>One of two first</advice>
</question>
<question name="2. The source of energy of the sun is...">
<answer correctness="false">nuclear fission</answer>
<answer correctness="false">chemical reaction</answer>
<answer correctness="true">nuclear fusion</answer>
<answer correctness="false">photoelectric effect</answer>
<advice>no prompt</advice>
</question>
</Topic>
<Topic id="2" name="Natural Resources" time="600">
<question name="1. What are some examples of Non-Renewable Resources?">
<answer correctness="true">Coal</answer>
<answer correctness="true">Oil</answer>
<answer correctness="false">Biomass</answer>
<advice>no prompt</advice>
</question>
<question name="2. What are some alternative sources of energy?">
<answer correctness="true">Wind</answer>
<answer correctness="true">Hydro</answer>
<answer correctness="false">Natural gas</answer>
<answer correctness="true">Fusion</answer>
<advice>Select correct variants</advice>
</question>
</Topic>
</LQuiz>
谁能帮助我如何使用 kxmls 或 ksoaps 解析这个 xml 文件?对不起,如果这是一个不好的问题。我需要一个示例代码。