android xml解析器问题

时间:2012-09-14 13:13:46

标签: android xml-parsing

我正在尝试解析xml数据,但我没有使用dom解析器获取案例内容 请让我知道我该怎么做。提前致谢。 xml数据

<result>
<options id="1">
<question>who will win</question>
<case text="A" total="23" vote="17" percent="73.91"/>
<case text="B" total="23" vote="3" percent="13.04"/>
<case text="c" total="23" vote="1" percent="4.35"/>
<case text="d" total="23" vote="2" percent="8.7"/>
</options>
</result>

1 个答案:

答案 0 :(得分:0)

请参阅下面我使用DOM Parser进行XML解析的答案的链接。

DOM Parsing Example