【问题标题】:android xml parser issueandroid xml解析器问题
【发布时间】:2012-09-14 13:13:45
【问题描述】:

我正在尝试解析以下 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>

【问题讨论】:

    标签: android xml-parsing


    【解决方案1】:

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

    DOM Parsing Example

    【讨论】:

    • 我已经使用了下面的代码,但我没有得到案例内容
    • @user853341 发布您的完整代码。
    猜你喜欢
    • 1970-01-01
    • 2012-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-23
    • 1970-01-01
    相关资源
    最近更新 更多